X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/2ccb790eda1239207af9566efcf0a13d1139b682..3e0b9d943a1b10b717fc5751c28d228b532307ec:/Makefile diff --git a/Makefile b/Makefile index ea439ec..ac20683 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,17 @@ +PREFIX:=/usr/local + build: pod2man -c mr mr > mr.1 + pod2man -c webcheckout webcheckout > webcheckout.1 test: - (echo "[]"; echo "checkout=") > mrconfig.tmp - ./mr -c mrconfig.tmp ed | grep -q "horse" + (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