diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-07 20:38:51 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-07 20:41:07 +0200 |
commit | 0b95a21bd70f63fc57f62020ae84e467712d69f2 (patch) | |
tree | 866e7775a9d443df1504e2f67c8fd3798a15f1cf /Makefile.am | |
parent | build-sys: properly mkdir with DESTDIR set (diff) | |
download | systemd-0b95a21bd70f63fc57f62020ae84e467712d69f2.tar.xz systemd-0b95a21bd70f63fc57f62020ae84e467712d69f2.zip |
build-sys: properly mkdir for GENERAL_ALIASES
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.
Diffstat (limited to '')
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 1b8ed92237..6200610499 100644 --- 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 $$?; \ |