]> 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:

remove left-over useless exit code
[code/vcsh.git] / Makefile
1 PREFIX=/usr
2
3 manpages=vcsh.1
4 all=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 INSTALL.md README.md $(DESTDIR)$(PREFIX)/share/doc/vcsh
15         install -d $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
16         install -m 0644 _vcsh $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
17
18 manpages: $(manpages)
19
20 vcsh.1: doc/vcsh.1.ronn
21         ronn < doc/vcsh.1.ronn > vcsh.1
22
23 clean:
24         rm -rf vcsh.1
25
26 uninstall:
27         rm -rf $(DESTDIR)$(PREFIX)/bin/vcsh
28         rm -rf $(DESTDIR)$(PREFIX)/share/man/man1/vcsh.1
29         rm -rf $(DESTDIR)$(PREFIX)/share/doc/vcsh
30         rm -rf $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_vcsh
31
32 # Potentially harmful, used a non-standard option on purpose.
33 # If PREFIX=/usr/local and that's empty...
34 purge: uninstall
35         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/bin/
36         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/man/man1/
37         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/doc/
38         rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/
39
40 moo:
41         if [ -x /usr/games/cowsay ]; then /usr/games/cowsay "I hope you're happy now..."; fi