From 1e0ba1900299b9f34c126c48044aa44e5237b09f Mon Sep 17 00:00:00 2001 From: Jon Ludlam Date: Tue, 14 Oct 2014 23:31:27 +0100 Subject: [PATCH] Add a Makefile rule to make the ml file generated from the idl Signed-off-by: Jon Ludlam --- .gitignore | 1 + tests/Makefile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index fca56579..9f0d9eab 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ *.cmo *.annot *~ +idl_test_gen.ml diff --git a/tests/Makefile b/tests/Makefile index 88f8a447..f49a1959 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -45,5 +45,9 @@ idl_test.cmx: idl_test.ml idl_test.cmi camlp4o $(shell ocamlfind query rpclib.syntax -r -format "-I %d %a" -predicates syntax,preprocessor) $< -printer o > $@.ml $(OCAMLOPT) $(OCAMLFLAGS) -package $(PACKS) -c -o $@ $@.ml +idl_test_gen.ml: idl_test.ml + camlp4o $(shell ocamlfind query rpclib.idl -r -format "-I %d %a" -predicates syntax,preprocessor) $< -printer o > $@ + + clean: rm -f *_gen.ml *.annot *.cmx *.cmi *.cmo *.cmxa *.o $(EXECS)