2009-08-17 22:37:20 +05:30
|
|
|
include ../vars.mk
|
|
|
|
|
2009-08-18 04:36:04 +05:30
|
|
|
CONF_FILE = xbps-src.conf
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
2009-08-18 23:28:25 +05:30
|
|
|
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" \
|
|
|
|
$(CONF_FILE) > $(CONF_FILE).new
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2009-08-20 07:36:02 +05:30
|
|
|
-rm -f $(CONF_FILE).new
|
2009-08-17 22:37:20 +05:30
|
|
|
|
|
|
|
install:
|
2009-08-18 19:34:34 +05:30
|
|
|
if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \
|
|
|
|
install -d $(DESTDIR)$(ETCDIR); \
|
2009-08-17 22:37:20 +05:30
|
|
|
fi
|
|
|
|
|
2009-08-18 23:28:25 +05:30
|
|
|
if [ ! -f $(DESTDIR)$(ETCDIR)/$(CONF_FILE) ]; then \
|
|
|
|
install -m 644 $(CONF_FILE).new \
|
|
|
|
$(DESTDIR)$(ETCDIR)/$(CONF_FILE); \
|
2009-08-17 22:37:20 +05:30
|
|
|
fi
|