jw-pkg/make/conf.mk
Jan Lindemann c7097bf534 conf.mk: Fix $(CONF_D) installation owner and mode
Installation was done with plain install -d instead of $(INSTALL) -d, which
yielded a permission denied.

Signed-off-by: Jan Lindemann <jan@janware.com>
2017-06-19 22:12:48 +00:00

21 lines
582 B
Makefile

include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/rules.mk
all:
clean: clean.conf
install: install_CFG install_files_SYSCFG install_files_LOGROT install_files_CRONTAB install_files_RSYSLOG \
install_files_APACHE_CONF install_files_SYSTEMD $(CONF_D)
clean.conf:
rm -rf *.h *~ .*.swp *.done
ifneq ($(CONFIG_SUBDIR),)
$(INSTALLED_CFG): $(INSTALL_CFGDIR)
endif
ifneq ($(CONF_D),)
INSTALLED_CONF_D = $(addprefix $(INSTALL_CFGDIR)/,$(CONF_D))
$(INSTALL_CFGDIR)/$(CONF_D):
$(INSTALL) -d -m $(CFGDIRMODE) -d $(CFGDIROWNER) -g $(CFGDIRGROUP) $@
install: $(INSTALLED_CONF_D)
endif