xbps/etc/Makefile
Juan RP c9d19c2da9 Fix installation of packages in the chroot due to previous
changes.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090818175825-sazm2dea97y4m0ky
2009-08-18 19:58:25 +02:00

22 lines
399 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:
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