X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/f1064b084b2fbf042a4e9421cf611df5b532d1b2..9f74a1d73590771f9b0769804d13d1fee5ac1f5e:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index ac20683..3718e32 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,13 @@ -PREFIX:=/usr/local +PREFIX:=/usr -build: +mans=mr.1 webcheckout.1 + +build: $(mans) + +mr.1: mr pod2man -c mr mr > mr.1 + +webcheckout.1: webcheckout pod2man -c webcheckout webcheckout > webcheckout.1 test: @@ -10,8 +16,17 @@ test: rm -f mrconfig.tmp install: build - install -Dm0755 mr ${DESTDIR}${PREFIX}/bin/mr - install -Dm0755 webcheckout ${DESTDIR}${PREFIX}/bin/webcheckout + install -d ${DESTDIR}${PREFIX}/bin + install -d ${DESTDIR}${PREFIX}/share/man/man1 + install -d ${DESTDIR}${PREFIX}/share/mr + + install -m0755 mr ${DESTDIR}${PREFIX}/bin/ + install -m0755 webcheckout ${DESTDIR}${PREFIX}/bin/ + + install -m0644 mr.1 ${DESTDIR}${PREFIX}/share/man/man1/ + install -m0644 webcheckout.1 ${DESTDIR}${PREFIX}/share/man/man1/ + + install -m0644 lib/* ${DESTDIR}${PREFIX}/share/mr/ - install -Dm0644 mr.1 ${DESTDIR}${PREFIX}/share/man/man1/mr.1 - install -Dm0644 webcheckout.1 ${DESTDIR}${PREFIX}/share/man/man1/webcheckout.1 +clean: + rm -f $(mans)