745192ef37
It's better to keep it outside of XBPS. --HG-- extra : convert_revision : 34f9c316585b972158d6ee55492c02c9bc5d3fcd
25 lines
442 B
Makefile
25 lines
442 B
Makefile
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:
|