make: Support CONFIG_SUBDIR and CONF_D

This commit is contained in:
Jan Lindemann 2009-03-26 16:05:07 +00:00 committed by Jan Lindemann
commit 05ed5dfd02
2 changed files with 19 additions and 2 deletions

View file

@ -3,8 +3,21 @@ include $(MODDIR)/make/rules.mk
all:
clean: clean.conf
install: install_CFG install_SYSCFG install_LOGROT
install: install_CFG install_SYSCFG install_LOGROT $(CONF_D)
clean.conf:
rm -rf *.h *~ .*.swp *.done
ifneq ($(CONFIG_SUBDIR),)
$(INSTALLED_CFG): $(INSTALL_CFGDIR)
$(INSTALL_CFGDIR):
install -d -m $(CFGDIRMODE) -d $(CFGDIROWNER) -g $(CFGDIRGROUP) $@
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