diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0bbe4ca --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |