]> git.madduck.net Git - code/myrepos.git/blob - 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:

Always ensure all parent .mrconfig files are loaded
[code/myrepos.git] / Makefile
1 PREFIX:=/usr
2
3 mans=mr.1 webcheckout.1
4
5 build: $(mans)
6
7 mr.1: mr
8         pod2man -c mr mr > mr.1
9
10 webcheckout.1: webcheckout
11         pod2man -c webcheckout webcheckout > webcheckout.1
12
13 test:
14         (echo "[.]"; echo "checkout=") > mrconfig.tmp
15         ./mr --trust-all -c mrconfig.tmp ed | grep -q "horse"
16         rm -f mrconfig.tmp
17
18 install: build
19         install -d ${DESTDIR}${PREFIX}/bin
20         install -d ${DESTDIR}${PREFIX}/share/man/man1
21         install -d ${DESTDIR}${PREFIX}/share/mr
22
23         install -m0755 mr ${DESTDIR}${PREFIX}/bin/
24         install -m0755 webcheckout ${DESTDIR}${PREFIX}/bin/
25
26         install -m0644 mr.1 ${DESTDIR}${PREFIX}/share/man/man1/
27         install -m0644 webcheckout.1 ${DESTDIR}${PREFIX}/share/man/man1/
28
29         install -m0644 lib/* ${DESTDIR}${PREFIX}/share/mr/
30
31 clean:
32         rm -f $(mans)