From: Richard Hartmann Date: Sun, 27 Oct 2013 17:54:53 +0000 (+0100) Subject: Makefile: Avoid calling `dirname` X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/c0d0f80513f26e7b6a485bbd6239191a3fe4be59 Makefile: Avoid calling `dirname` --- diff --git a/Makefile b/Makefile index 429ecd6..ebe4b2b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ PREFIX=/usr -DOCDIR=$(PREFIX)/share/doc/$(self) +DOCDIR_PREFIX=$(PREFIX)/share/doc +DOCDIR=$(DOCDIR_PREFIX)/$(self) ZSHDIR=$(PREFIX)/share/zsh/vendor-completions RONN ?= ronn @@ -39,7 +40,7 @@ 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: