]> git.meshlink.io Git - catta/commitdiff
build-sys: fix parallel install in avahi-utils
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>
Sun, 17 Jun 2012 14:44:01 +0000 (07:44 -0700)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Jun 2012 13:46:25 +0000 (15:46 +0200)
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.

avahi-utils/Makefile.am

index a644b4a99767f6d7966b9054596d1f1a89607215..1abc79a02d5cdb1b5e146811c31f9bcf1d231460 100644 (file)
@@ -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 && \