From e3a2b943beb79beccd16e38758b09ac6e71cac0b Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Thu, 5 May 2005 15:54:34 +0000 Subject: [PATCH] added test and test.opt targets --- helm/ocaml/Makefile.common.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm/ocaml/Makefile.common.in b/helm/ocaml/Makefile.common.in index 5e3080781..b191767d2 100644 --- a/helm/ocaml/Makefile.common.in +++ b/helm/ocaml/Makefile.common.in @@ -49,6 +49,10 @@ prereq: $(PREREQ) all: prereq $(IMPLEMENTATION_FILES:%.ml=%.cmo) $(ARCHIVE) opt: prereq $(IMPLEMENTATION_FILES:%.ml=%.cmx) $(ARCHIVE_OPT) world: all opt +test: test.ml $(ARCHIVE) + $(OCAMLC) $(ARCHIVE) -linkpkg -o $@ $< +test.opt: test.ml $(ARCHIVE_OPT) + $(OCAMLOPT) $(ARCHIVE_OPT) -linkpkg -o $@ $< depend: $(DEPEND_FILES) $(OCAMLDEP) $(INTERFACE_FILES) $(IMPLEMENTATION_FILES) > .depend @@ -75,6 +79,8 @@ $(IMPLEMENTATION_FILES:%.ml=%.cmx): $(LIBRARIES_OPT) clean: rm -f *.cm[ioax] *.cmxa *.o *.a $(EXTRA_OBJECTS_TO_CLEAN) + if [ -f test ]; then rm -f test; else true; fi + if [ -f test.opt ]; then rm -f test.opt; else true; fi install: mkdir $(OCAMLFIND_DEST_DIR)/$(PACKAGE) -- 2.39.2