From f1064b084b2fbf042a4e9421cf611df5b532d1b2 Mon Sep 17 00:00:00 2001 From: v4hn Date: Wed, 19 Jun 2013 01:41:26 +0200 Subject: [PATCH 1/1] Add a simple `make install` rule This makes it more easy to install the applications AND the man pages to the system. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.5