2009-02-05 13:46:09 +00:00
|
|
|
TOPDIR = ../..
|
|
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
|
|
|
|
BIN = xbps-src
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
2009-02-05 14:21:33 +00:00
|
|
|
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" \
|
|
|
|
-e "s|@@XBPS_INSTALL_ETCDIR@@|$(ETCDIR)|g" \
|
|
|
|
main.sh > xbps-src
|
2009-02-05 13:46:09 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
2009-02-05 14:21:33 +00:00
|
|
|
clean:
|
2009-02-05 13:46:09 +00:00
|
|
|
-rm -f $(BIN)
|
|
|
|
|
2009-02-05 14:21:33 +00:00
|
|
|
install: all
|
2009-02-05 13:46:09 +00:00
|
|
|
install -d $(SBINDIR)
|
|
|
|
install -m 755 $(BIN) $(SBINDIR)
|