blob: 2070c940c9d03df973f78cbe06822bbd910970fc (
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 -p /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
|