1 2 3 4 5 6 7 8 9
hooks := pre-commit .PHONY: all all: $(addprefix ../db/.git/hooks/,$(hooks)) ../db/.git/hooks/%: hooks/% cp $< $@