From: v4hn Date: Tue, 18 Jun 2013 23:41:26 +0000 (+0200) Subject: Add a simple `make install` rule X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/f1064b084b2fbf042a4e9421cf611df5b532d1b2?hp=5c40613a5cea13dec8fa586f565ab85983ec625f Add a simple `make install` rule This makes it more easy to install the applications AND the man pages to the system. --- diff --git a/Makefile b/Makefile index 8a8a63a..ac20683 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PREFIX:=/usr/local + build: pod2man -c mr mr > mr.1 pod2man -c webcheckout webcheckout > webcheckout.1 @@ -6,3 +8,10 @@ test: (echo "[.]"; echo "checkout=") > mrconfig.tmp ./mr --trust-all -c mrconfig.tmp ed | grep -q "horse" rm -f mrconfig.tmp + +install: build + install -Dm0755 mr ${DESTDIR}${PREFIX}/bin/mr + install -Dm0755 webcheckout ${DESTDIR}${PREFIX}/bin/webcheckout + + install -Dm0644 mr.1 ${DESTDIR}${PREFIX}/share/man/man1/mr.1 + install -Dm0644 webcheckout.1 ${DESTDIR}${PREFIX}/share/man/man1/webcheckout.1