]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: properly mkdir for GENERAL_ALIASES
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 May 2013 18:38:51 +0000 (14:38 -0400)
committerZbigniew 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

index 1b8ed92237ce6660456113445d89125930cd5185..6200610499e7dfb4b151bacd11c0192be7b152f4 100644 (file)
@@ -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 $$?; \