aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-11-10 15:25:23 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-11-10 15:25:23 +0100
commitaa727b8868b428a6b75e0d48a854be65242b257c (patch)
tree37be2eeff0f50effca07977eec99b7b5364bdddb /Makefile
parentba7820b18c0ee8631505f7a2a764f7222a732d44 (diff)
downloadapp.sh-aa727b8868b428a6b75e0d48a854be65242b257c.tar.gz
app.sh-aa727b8868b428a6b75e0d48a854be65242b257c.tar.bz2
app.sh-aa727b8868b428a6b75e0d48a854be65242b257c.tar.xz
app.sh-aa727b8868b428a6b75e0d48a854be65242b257c.zip
o Automatically fetching Bats if not installed.HEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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