summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8633aa8eae282a7ce99cf8290c05db954559366e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.POSIX:

ifndef PREFIX
	PREFIX = /usr/local
endif

install:
	mkdir -p ${DESTDIR}${PREFIX}/bin
	cp -f bin/stagit-new-repo bin/stagit-gen-index ${DESTDIR}${PREFIX}/bin/
	chmod 755 ${DESTDIR}${PREFIX}/bin/stagit-gen-index ${DESTDIR}${PREFIX}/bin/stagit-new-repo
	mkdir /home/git/hooks
	cp hooks/post-receive /home/git/hooks/

uninstall:
	rm ${DESTDIR}${PREFIX}/bin/stagit-gen-index ${DESTDIR}${PREFIX}/bin/stagit-new-repo
	rm /home/git/hooks/post-receive

.PHONY: install uninstall