chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20d4087
)
build-sys: properly mkdir for GENERAL_ALIASES
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 7 May 2013 18:38:51 +0000
(14:38 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 7 May 2013 18:41:07 +0000
(14:41 -0400)
Previous commit (
20d408766
) was broken. The problem is not connected
to DESTDIR being set or not, but to the fact that targets in
$GENERAL_ALIASES have directory components, so mkdir -p wasn't
recursing deep enough.
Makefile.am
patch
|
blob
|
history
diff --git
a/Makefile.am
b/Makefile.am
index 1b8ed92237ce6660456113445d89125930cd5185..6200610499e7dfb4b151bacd11c0192be7b152f4 100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-244,8
+244,8
@@
install-aliases-hook:
dir= && $(install-aliases)
define install-aliases
- $(MKDIR_P) $(DESTDIR)$$dir && \
while [ -n "$$1" ]; do \
+ $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
rm -f $(DESTDIR)$$dir/$$2 && \
$(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
shift 2 || exit $$?; \