summaryrefslogtreecommitdiff
path: root/Makefile
blob: cdd6bf7f8be71b1861c19c17f821df822cf5bd4f (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