]> git.madduck.net Git - code/myrepos.git/blobdiff - Makefile

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

avoid double build
[code/myrepos.git] / Makefile
index ac20683ace7f1f1e7007fe54f7f13ebf9060f7f6..d1e2e77101ed0e14304ca4550365d965215f81da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
-PREFIX:=/usr/local
+PREFIX:=/usr
 
 
-build:
+build: mr.1 webcheckout.1
+
+mr.1: mr
        pod2man -c mr mr > mr.1
        pod2man -c mr mr > mr.1
+
+webcheckout.1: webcheckout
        pod2man -c webcheckout webcheckout > webcheckout.1
 
 test:
        pod2man -c webcheckout webcheckout > webcheckout.1
 
 test:
@@ -10,8 +14,14 @@ test:
        rm -f mrconfig.tmp
 
 install: build
        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 -Dm0644 mr.1 ${DESTDIR}${PREFIX}/share/man/man1/mr.1
-       install -Dm0644 webcheckout.1 ${DESTDIR}${PREFIX}/share/man/man1/webcheckout.1
+       install -m0644 lib/* ${DESTDIR}${PREFIX}/share/mr/