X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=Makefile.in;h=f2df8d4d21813829eefb0a307b18f24992eca993;hp=8da1e311ca9056fd5dc1f6548d2f88441b5f09df;hb=3fadb034bfc0075d420bdd1383214014500501b8;hpb=c5fc33c2eda7c2bb45c3bafbe74827f17e215fb8 diff --git a/Makefile.in b/Makefile.in index 8da1e31..f2df8d4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -2,17 +2,21 @@ CAMLP4FLAGS=@CAMLP4FLAGS@ OCAMLBUILDFLAGS=-j 0 -use-ocamlfind @OCAMLBUILDFLAGS@ $(CAMLP4FLAGS:%=-tag %) OCAMLBUILD=@OCAMLBUILD@ PACKAGE = @PACKAGE_TARNAME@ -TARGETS=tatoo.native +NATIVE=$(PACKAGE).native +BYTE=$(PACKAGE).byte +TARGETS=$(NATIVE) + ifeq ($(BYTE), true) - TARGETS += tatoo.byte + TARGETS += $(BYTE) endif + INLINE=@INLINE@ -TAGS= inline($INLINE) +TAGS= -tag 'inline($(INLINE))' -.PHONY: clean distclean +.PHONY: clean distclean test test_byte test_native do_test all $(TARGETS) -all: $(TARGETS) +all: @ %: @@ -24,13 +28,20 @@ clean: distclean: clean @ rm -rf configure config.log config.status autom4te.cache Makefile -%.summary: - target=$@ \ - base=$* \ - test=$${base#*.xml.} \ - xml=$${base%.$$test} \ - BIN=$(TEST) \ - SPLIT=tools/split_path.native \ - XMLDIFF=tools/xml_diff.native \ - PACKAGE=$(PACKAGE) \ - . tests/$${test}.sh + +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