X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=Makefile.in;h=f2df8d4d21813829eefb0a307b18f24992eca993;hb=3fadb034bfc0075d420bdd1383214014500501b8;hp=1f30a3ab29d2b50207f1eb10164dbc2958865ad0;hpb=b57556aee8b43d71a919decb9682dd293aba4933;p=tatoo.git diff --git a/Makefile.in b/Makefile.in index 1f30a3a..f2df8d4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,3 +1,47 @@ +CAMLP4FLAGS=@CAMLP4FLAGS@ +OCAMLBUILDFLAGS=-j 0 -use-ocamlfind @OCAMLBUILDFLAGS@ $(CAMLP4FLAGS:%=-tag %) +OCAMLBUILD=@OCAMLBUILD@ +PACKAGE = @PACKAGE_TARNAME@ +NATIVE=$(PACKAGE).native +BYTE=$(PACKAGE).byte +TARGETS=$(NATIVE) + +ifeq ($(BYTE), true) + TARGETS += $(BYTE) +endif + +INLINE=@INLINE@ +TAGS= -tag 'inline($(INLINE))' + + +.PHONY: clean distclean test test_byte test_native do_test all $(TARGETS) + all: + @ + %: - @ ./remake -j $@ + @ $(OCAMLBUILD) $(OCAMLBUILDFLAGS) $@ + +clean: + @ $(OCAMLBUILD) $(OCAMLBUILDFLAGS) -clean + +distclean: clean + @ rm -rf configure config.log config.status autom4te.cache Makefile + + +test: + ${MAKE} test_native + ${MAKE} test_byte + +test_native: PROG=$(NATIVE) +test_native: $(NATIVE) do_test + +test_byte: PROG=$(BYTE) +test_byte: $(BYTE) do_test + + +do_test: + for test in tests/test_*.sh ; \ + do \ + $${test} $(PROG) tests ; \ + done