X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/59e6ad117e74d60918a7c7f8fc4854f23cff67cf..a7ec1feb5aaa690f1360f8c4f91d670bb3787752:/Makefile diff --git a/Makefile b/Makefile index 429ecd6..b40c618 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ 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 -all=test manpages +all=test all: $(all) @@ -39,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