summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2012-06-17 07:44:01 -0700
committerLennart Poettering <lennart@poettering.net>2012-06-19 15:46:25 +0200
commita485019966c32af05fb294fb4e20f1d3a82f3fbe (patch)
tree55498bd81b269871afcf9d8f88bfbd6560db814c
parent8070ec2ac51219c462ac05238eab239461c38454 (diff)
build-sys: fix parallel install in avahi-utils
The moment install-exec-local is called, we might still not have created ${DESTDIR}/${bindir} so we should make sure to create it first, and then try to chdir into it.
-rw-r--r--avahi-utils/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-utils/Makefile.am b/avahi-utils/Makefile.am
index a644b4a..1abc79a 100644
--- a/avahi-utils/Makefile.am
+++ b/avahi-utils/Makefile.am
@@ -54,7 +54,8 @@ avahi_set_host_name_CFLAGS = $(AM_CFLAGS)
avahi_set_host_name_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la
install-exec-local:
- cd $(DESTDIR)/$(bindir) && \
+ $(mkdir_p) $(DESTDIR)/$(bindir) && \
+ cd $(DESTDIR)/$(bindir) && \
rm -f avahi-resolve-host-name avahi-resolve-address avahi-browse-domains avahi-publish-address avahi-publish-service && \
$(LN_S) avahi-resolve avahi-resolve-host-name && \
$(LN_S) avahi-resolve avahi-resolve-address && \