git-svn-id: http://caml.inria.fr/svn/ocaml/branches/extension_points@13573 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Alain Frisch 2013-04-18 15:46:49 +00:00
parent 958730ec78
commit 4de999bd87
1 changed files with 7 additions and 4 deletions

View File

@ -4,6 +4,10 @@ COMMON=$(ROOT)/compilerlibs/ocamlcommon.cma
BYTECMP=$(ROOT)/compilerlibs/ocamlbytecomp.cma
TOPLVL=$(ROOT)/compilerlibs/ocamltoplevel.cma
clean:
rm -f *.exe *.cm* *~
## Conditional compilation based on environment variables
.PHONY: ifdef
@ -12,16 +16,15 @@ ifdef:
$(OCAMLC) -o test_ifdef.exe -ppx ./ifdef.exe -dsource test_ifdef.ml
./test_ifdef.exe
## A proposal for replacing js_of_ocaml Camlp4 syntax extension with
## a -ppx filter
.PHONY: js_syntax
js_syntax:
$(OCAMLC) -o js_syntax.exe -w +A-4 $(COMMON) js_syntax.ml
$(OCAMLC) -o test_ifdef.exe -i -ppx ./js_syntax.exe test_js.ml
clean:
rm -f *.exe *.cm* *~
## A "toy" ocamldoc clone based on .cmti files
.PHONY: minidoc