From aa727b8868b428a6b75e0d48a854be65242b257c Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 10 Nov 2013 15:25:23 +0100 Subject: o Automatically fetching Bats if not installed. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index edf76c8..710c092 100644 --- a/Makefile +++ b/Makefile @@ -7,16 +7,19 @@ TESTS=$(addprefix test-,$(BATS)) test-%: @echo === $@ - @bats $(patsubst test-%,test/%,$@) + @PATH=test/bats/bin:$(PATH) bats $(patsubst test-%,test/%,$@) show-tests: @echo BATS=$(BATS) @echo TESTS=$(TESTS) @echo $(addprefix set_header-,$(BINS)) -test: $(TESTS) +test: test/bats $(TESTS) .PHONY: test +test/bats: + cd test && git clone git://github.com/sstephenson/bats.git + clean: @make -s -C docs clean .PHONY: clean -- cgit v1.2.3