Fix failed MKDIR when $(DESTDIR) is set.

This commit is contained in:
Kris Maglione 2009-10-13 15:55:17 -04:00
parent 6b0d71843b
commit ee53d79fa8

View File

@ -70,7 +70,7 @@ all:
INSTALL= _install() { set -e; \ INSTALL= _install() { set -e; \
dashb=$$1; [ $$1 = -b ] && shift; \ dashb=$$1; [ $$1 = -b ] && shift; \
d=$$(dirname $$3); \ 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); \ echo INSTALL $$($(CLEANNAME) $(BASE)$$2); \
if [ "$$dashb" = -b ]; \ if [ "$$dashb" = -b ]; \
then cp -f $$2 $(DESTDIR)$$3; \ then cp -f $$2 $(DESTDIR)$$3; \