X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/43f82e0bc90d8c7b5456ba29c8a8d0f4e1004361..dda9802233e27008cdd3206d4474be69d54a55b0:/Makefile?ds=inline diff --git a/Makefile b/Makefile index d62b5cf..4ae8d88 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ PREFIX=/usr -DOCDIR=$(PREFIX)/share/doc/$(self) +DOCDIR_PREFIX=$(PREFIX)/share/doc +DOCDIR=$(DOCDIR_PREFIX)/$(self) ZSHDIR=$(PREFIX)/share/zsh/vendor-completions +RONN ?= ronn self=vcsh manpages=$(self).1 @@ -22,7 +24,7 @@ install: all manpages: $(manpages) $(self).1: doc/$(self).1.ronn - ronn < doc/$(self).1.ronn > $(self).1 + $(RONN) < doc/$(self).1.ronn > $(self).1 || rm $(self).1 clean: rm -rf $(self).1 @@ -38,11 +40,11 @@ uninstall: purge: uninstall rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/bin/ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/man/man1/ - rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(shell dirname $(DOCDIR)) + rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(DOCDIR_PREFIX) rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(ZSHDIR) test: - if which git > /dev/null ; then :; else echo "'git' not found, exiting..."; exit 1; fi + @if which git > /dev/null ; then :; else echo "'git' not found, exiting..."; exit 1; fi moo: @if [ -x /usr/games/cowsay ]; then /usr/games/cowsay "I hope you're happy now..."; fi