From: Gunnar Beutner Date: Fri, 27 Sep 2013 08:51:21 +0000 (+0200) Subject: Build fix. X-Git-Tag: v0.0.3~374 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28236f341a47a42e3699cf5eaefc36123a8858b2;p=icinga2 Build fix. --- diff --git a/etc/icinga2/conf.d/Makefile.am b/etc/icinga2/conf.d/Makefile.am index 46a37b0b2..15d266e74 100644 --- a/etc/icinga2/conf.d/Makefile.am +++ b/etc/icinga2/conf.d/Makefile.am @@ -7,7 +7,8 @@ CONFIG_FILES = \ macros.conf install-data-local: - @for file in $(CONFIG_FILES); do \ + @$(MKDIR_P) $(icinga2confdir); \ + for file in $(CONFIG_FILES); do \ if [ ! -e $(icinga2confdir)/$$file ]; then \ $(INSTALL_DATA) $$file $(icinga2confdir)/$$file; \ fi; \ diff --git a/etc/icinga2/mods-available/Makefile.am b/etc/icinga2/mods-available/Makefile.am index 7051316dd..b39bc033e 100644 --- a/etc/icinga2/mods-available/Makefile.am +++ b/etc/icinga2/mods-available/Makefile.am @@ -8,7 +8,8 @@ CONFIG_FILES = \ compat.conf install-data-local: - @for file in $(CONFIG_FILES); do \ + @$(MKDIR_P) $(icinga2confdir); \ + for file in $(CONFIG_FILES); do \ if [ ! -e $(icinga2confdir)/$$file ]; then \ $(INSTALL_DATA) $$file $(icinga2confdir)/$$file; \ fi; \