summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 49538be..ba3a58e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
all: test docs
BINS=$(wildcard bin/*) $(wildcard libexec/*)
+HOOKS=$(wildcard hooks/*)
BATS=$(sort $(patsubst test/%,%,$(filter-out test/X-%,$(wildcard test/*.bats))))
TESTS=$(addprefix test-,$(BATS))
@@ -30,12 +31,10 @@ set_header-$(1):
if [ `md5sum $(1)|cut -f 1 -d ' '` != `md5sum x|cut -f 1 -d ' '` ]; then echo Updated: $(1); cp x $(1); fi; \
rm x
endef
- $(wildcard hooks/*)
$(foreach f,$(BINS),$(eval $(call set_header,$(f),lib/header)))
-set-headers: set-hook-headers $(addprefix set_header-,$(BINS))
-
-$(foreach f,$(wildcard hooks/*),$(eval $(call set_header,$(f),lib/hook-header)))
set-headers: $(addprefix set_header-,$(BINS))
+$(foreach f,$(HOOKS),$(eval $(call set_header,$(f),lib/header-hook)))
+set-headers: $(addprefix set_header-,$(HOOKS))
.PHONY: set-headers