diff options
Diffstat (limited to 'default.mk')
-rw-r--r-- | default.mk | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -33,21 +33,18 @@ clean:: install:: $(_SUBDIR) -install:: $(BIN) $(CONF) $(CONF_APPEND) $(MAN8) +install:: $(BIN) $(CONF) $(CONF_APPEND) if test -n "$(DIR)" ; then $(INSTALL) -d $(DESTDIR)$(DIR) || exit $$?; fi if test -n "$(BIN)" ; then $(INSTALL) $(BIN) $(DESTDIR)$(DIR) || exit $$?; fi - if test -n "$(CONF)" ; then $(INSTALL) -m 0644 $(CONF) $(DESTDIR)$(DIR) || exit $$?; fi - for x in $(CONF_APPEND) ; do \ + for x in $(CONF); do \ if ! test -e $(DESTDIR)$(DIR)/$$x; then \ $(INSTALL) -m 0644 $$x $(DESTDIR)$(DIR) || exit $$?; \ fi; \ done - for x in $(CONF_APPEND) ; do \ + for x in $(CONF_APPEND); do \ if test -e $(DESTDIR)$(DIR)/$$x; then \ cat $$x >> $(DESTDIR)$(DIR)/$$x || exit $$?; \ else \ $(INSTALL) -m 0644 $$x $(DESTDIR)$(DIR) || exit $$?; \ fi; \ done - -.PHONY: all clean install |