X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/cd7b0331b72123ca22a88f833b6c0bb3e3d9d15e..18b367967a76db6639bc98ed58a4b1e37fb140d2:/Makefile diff --git a/Makefile b/Makefile index f03411a..eda083b 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,23 @@ +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 -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/