new tool (very early)
[hband-tools.git] / git-server / Makefile
blobab1bcfb6941a7fa289612fdd2f5dd5e66a0746b6
2 EXEC_PREFIX = /srv/bin
3 ETC_PREFIX = /etc
6 default:
7 @echo may be interested in: install
8 false
10 install: $(EXEC_PREFIX)/git-receive-pack $(EXEC_PREFIX)/git-repo-mgmt $(ETC_PREFIX)/issue.git
11 .PHONY: install
13 $(EXEC_PREFIX)/git-receive-pack $(EXEC_PREFIX)/git-repo-mgmt: $(EXEC_PREFIX)/%: %
14 install $< $@
16 $(ETC_PREFIX)/issue.git: $(ETC_PREFIX)/%: %
17 cp -f $< $@
20 define uninstall
21 @[ ! -e $(1) ] || remove $(1)
22 endef
24 uninstall:
25 $(call uninstall,$(EXEC_PREFIX)/git-receive-pack)
26 $(call uninstall,$(EXEC_PREFIX)/git-repo-mgmt)
27 $(call uninstall,$(ETC_PREFIX)/issue.git)
28 .PHONY: uninstall