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

Fix quoting
[code/vcsh.git] / Makefile
1 PREFIX=/usr
2
3 manpages=vcsh.1
4 all=test manpages
5
6 all: $(all)
7
8 install: all
9         install -d $(DESTDIR)$(PREFIX)/bin
10         install -m 0755 vcsh $(DESTDIR)$(PREFIX)/bin
11         install -d $(DESTDIR)$(PREFIX)/share/man/man1
12         install -m 0644 $(manpages)  $(DESTDIR)$(PREFIX)/share/man/man1
13         install -d $(DESTDIR)$(PREFIX)/share/doc/vcsh
14         install -m 0644 README.md $(DESTDIR)$(PREFIX)/share/doc/vcsh
15         install -m 0644 doc/hooks $(DESTDIR)$(PREFIX)/share/doc/vcsh
16         install -d $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
17         install -m 0644 _vcsh $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
18
19 manpages: $(manpages)
20
21 vcsh.1: doc/vcsh.1.ronn
22         ronn < doc/vcsh.1.ronn > vcsh.1
23
24 clean:
25         rm -rf vcsh.1
26
27 uninstall:
28         rm -rf $(DESTDIR)$(PREFIX)/bin/vcsh
29         rm -rf $(DESTDIR)$(PREFIX)/share/man/man1/vcsh.1
30         rm -rf $(DESTDIR)$(PREFIX)/share/doc/vcsh
31         rm -rf $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_vcsh
32
33 # Potentially harmful, used a non-standard option on purpose.
34 # If PREFIX=/usr/local and that's empty...
35 purge: uninstall
36         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/bin/
37         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/man/man1/
38         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/doc/
39         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/
40
41 test:
42         if which git > /dev/null ; then :; else echo "'git' not found, exiting..."; exit 1; fi
43
44 moo:
45         if [ -x /usr/games/cowsay ]; then /usr/games/cowsay "I hope you're happy now..."; fi