[hackers] [wmii] Fix failed MKDIR when $(DESTDIR) is set. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Tue, 13 Oct 2009 20:15:36 +0000 (UTC)

changeset: 2541:a8cdb94ecb20
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Oct 13 15:55:17 2009 -0400
files: mk/hdr.mk
description:
Fix failed MKDIR when $(DESTDIR) is set.

diff -r 100d238068f9 -r a8cdb94ecb20 mk/hdr.mk
--- a/mk/hdr.mk Tue Oct 13 05:38:54 2009 -0400
+++ b/mk/hdr.mk Tue Oct 13 15:55:17 2009 -0400
@@ -70,7 +70,7 @@
 INSTALL= _install() { set -e; \
                  dashb=$$1; [ $$1 = -b ] && shift; \
                  d=$$(dirname $$3); \
- if [ ! -d $$d ]; then echo MKDIR $$d; mkdir -p $(DESTDIR)$$d; fi; \
+ if [ ! -d $(DESTDIR)$$d ]; then echo MKDIR $$d; mkdir -p $(DESTDIR)$$d; fi; \
                  echo INSTALL $$($(CLEANNAME) $(BASE)$$2); \
                  if [ "$$dashb" = -b ]; \
                  then cp -f $$2 $(DESTDIR)$$3; \
Received on Tue Oct 13 2009 - 20:15:36 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 13 2009 - 20:24:08 UTC