etc/Makefile: install conf files correctly.
This commit is contained in:
parent
08f7169eff
commit
c285afebdc
10
etc/Makefile
10
etc/Makefile
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user