Sha256: eb2b954a0edcaa86cd99fd3a1a1b8d94567812ce5d2b644efdec304e494a6df3

Contents?: true

Size: 1.08 KB

Versions: 18

Compression:

Stored size: 1.08 KB

Contents

# assignments
ASSIGNMENT ?= ""
ASSIGNMENTS = $(shell find ./exercises -maxdepth 1 -mindepth 1 -type d | awk -F/ '{print $$NF}' | sort)

default: test

# output directories
TMPDIR ?= "/tmp/"
OUTDIR := $(shell mktemp -d "$(TMPDIR)$(ASSIGNMENT).XXXXXXXXXX")

# language specific config (tweakable per language)
FILEEXT := "ml"
EXAMPLE := "example.$(FILEEXT)"
SRCFILE := "$(shell echo $(ASSIGNMENT) | sed 's/-/_/g')"
TSTFILE := "$(SRCFILE)_test.$(FILEEXT)"
# Any additional arguments, such as -p for pretty output and others
ARGS ?= ""

# single test
test-assignment:
	@echo ""
	@echo ""
	@echo "----------------------------------------------------------------"
	@echo "running tests for: $(ASSIGNMENT)"
	@cp -r ./exercises/$(ASSIGNMENT)/* $(OUTDIR)
	@cp ./exercises/$(ASSIGNMENT)/$(EXAMPLE) $(OUTDIR)/$(SRCFILE).$(FILEEXT)
	@make -C $(OUTDIR)
	@rm -rf $(OUTDIR)

# all tests
test:
	@for assignment in $(ASSIGNMENTS); do \
		ASSIGNMENT=$$assignment $(MAKE) -s test-assignment || exit 1;\
	done

clean:
	@for assignment in $(ASSIGNMENTS); do \
		make -C ./exercises/$$assignment clean;\
	done

.PHONY: clean

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
trackler-2.0.0.8 tracks/ocaml/Makefile
trackler-2.0.0.7 tracks/ocaml/Makefile
trackler-2.0.0.6 tracks/ocaml/Makefile
trackler-2.0.0.5 tracks/ocaml/Makefile
trackler-2.0.0.4 tracks/ocaml/Makefile
trackler-2.0.0.3 tracks/ocaml/Makefile
trackler-2.0.0.2 tracks/ocaml/Makefile
trackler-2.0.0.1 tracks/ocaml/Makefile
trackler-2.0.0.0 tracks/ocaml/Makefile
trackler-1.0.4.1 tracks/ocaml/Makefile
trackler-1.0.4.0 tracks/ocaml/Makefile
trackler-1.0.3.0 tracks/ocaml/Makefile
trackler-1.0.2.1 tracks/ocaml/Makefile
trackler-1.0.2.0 tracks/ocaml/Makefile
trackler-1.0.1.2 tracks/ocaml/Makefile
trackler-1.0.1.1 tracks/ocaml/Makefile
trackler-1.0.1.0 tracks/ocaml/Makefile
trackler-1.0.0.1 tracks/ocaml/Makefile