etc/Makefile: install conf files correctly.

This commit is contained in:
Juan RP 2011-10-17 14:31:24 +02:00
parent 08f7169eff
commit c285afebdc

View File

@ -1,6 +1,6 @@
-include ../config.mk -include ../config.mk
CONF_FILE = conf.plist repositories.plist CONF_FILES = conf.plist repositories.plist
.PHONY: all .PHONY: all
all: all:
@ -8,9 +8,11 @@ all:
.PHONY: install .PHONY: install
install: install:
install -d $(DESTDIR)$(ETCDIR) install -d $(DESTDIR)$(ETCDIR)
if [ ! -f $(DESTDIR)$(ETCDIR)/$(CONF_FILE) ]; then \ for f in $(CONF_FILES); do \
install -m644 $(CONF_FILE) $(DESTDIR)$(ETCDIR); \ if [ ! -f $(DESTDIR)$(ETCDIR)/$$f ]; then \
fi install -m644 $$f $(DESTDIR)$(ETCDIR); \
fi; \
done
.PHONY: uninstall .PHONY: uninstall
uninstall: uninstall: