+ @ $(OCAMLBUILD) $(OCAMLBUILDFLAGS) $(TAGS) $(PPOPTFLAGS:%=-tag %) $@
+
+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