mpri-funcprog-project/src/test/Makefile

22 lines
447 B
Makefile
Raw Normal View History

2017-12-13 14:04:28 +01:00
OCAMLBUILD := ocamlbuild -use-ocamlfind -classic-display
TARGET := test.native
TESTS := ../tests
.PHONY: all test expected clean
all:
@ $(OCAMLBUILD) $(TARGET)
test: all
@ $(MAKE) -C ..
@ ./$(TARGET) --verbosity 1
expected: all
@ $(MAKE) -C ..
@ ./$(TARGET) --verbosity 1 --create-expected
clean:
@ rm -f *~ *.native *.byte
@ $(OCAMLBUILD) -clean
@ rm -f $(TESTS)/*.c $(TESTS)/*.exe $(TESTS)/*.out $(TESTS)/*.err $(TESTS)/*~