tracks/ocaml/Makefile in trackler-2.0.0.8 vs tracks/ocaml/Makefile in trackler-2.0.0.9

- old
+ new

@@ -1,10 +1,10 @@ # assignments ASSIGNMENT ?= "" ASSIGNMENTS = $(shell find ./exercises -maxdepth 1 -mindepth 1 -type d | awk -F/ '{print $$NF}' | sort) -default: test +default: testgenerator test # output directories TMPDIR ?= "/tmp/" OUTDIR := $(shell mktemp -d "$(TMPDIR)$(ASSIGNMENT).XXXXXXXXXX") @@ -25,16 +25,20 @@ @cp -r ./exercises/$(ASSIGNMENT)/* $(OUTDIR) @cp ./exercises/$(ASSIGNMENT)/$(EXAMPLE) $(OUTDIR)/$(SRCFILE).$(FILEEXT) @make -C $(OUTDIR) @rm -rf $(OUTDIR) +testgenerator: + make -C ./tools/test-generator + # all tests test: @for assignment in $(ASSIGNMENTS); do \ ASSIGNMENT=$$assignment $(MAKE) -s test-assignment || exit 1;\ done clean: + make -C ./tools/test-generator clean @for assignment in $(ASSIGNMENTS); do \ make -C ./exercises/$$assignment clean;\ done .PHONY: clean