blob: 0bbe4cab6920531563c7221e0825986d9eee20da (
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
|