forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.dlambda
More file actions
35 lines (31 loc) · 1.63 KB
/
Makefile.dlambda
File metadata and controls
35 lines (31 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#**************************************************************************
#* *
#* OCaml *
#* *
#* Xavier Clerc, SED, INRIA Rocquencourt *
#* *
#* Copyright 2010 Institut National de Recherche en Informatique et *
#* en Automatique. *
#* *
#* All rights reserved. This file is distributed under the terms of *
#* the GNU Lesser General Public License version 2.1, with the *
#* special exception on linking described in the file LICENSE. *
#* *
#**************************************************************************
# To avoid tests breaking each time the internal name generation
# changes, we strip -dlambda-produced identifiers of their unique
# identifier: "x/1234" becomes simply "x".
default:
@for file in *.ml; do \
$(OCAMLC) -dlambda -c $$file 2>&1 | \
sed -e "s|\\([A-Za-z_][A-Za-z_']*\)/[0-9][0-9]*|\\1|g" \
> $$file.result; \
done
@for file in *.reference; do \
printf " ... testing '$$file':"; \
$(DIFF) $$file `basename $$file reference`result >/dev/null \
&& echo " => passed" || echo " => failed"; \
done
promote: defaultpromote
clean: defaultclean
@rm -f *.result