vp-build/xbps-src/etc/Makefile

26 lines
442 B
Makefile
Raw Normal View History

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