xbps/etc/Makefile
Juan RP ef2e2612be etc/Makefile: remove modified config file in the clean target.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20090820020602-o2ki45yznf659a5q
2009-08-20 04:06:02 +02:00

23 lines
424 B
Makefile

include ../vars.mk
CONF_FILE = xbps-src.conf
.PHONY: all
all:
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" \
$(CONF_FILE) > $(CONF_FILE).new
.PHONY: clean
clean:
-rm -f $(CONF_FILE).new
install:
if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \
install -d $(DESTDIR)$(ETCDIR); \
fi
if [ ! -f $(DESTDIR)$(ETCDIR)/$(CONF_FILE) ]; then \
install -m 644 $(CONF_FILE).new \
$(DESTDIR)$(ETCDIR)/$(CONF_FILE); \
fi