2009-08-17 22:37:20 +05:30
|
|
|
TOPDIR = ../..
|
|
|
|
include $(TOPDIR)/vars.mk
|
|
|
|
|
|
|
|
BIN = xbps-src
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
|
|
|
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" \
|
|
|
|
-e "s|@@XBPS_INSTALL_ETCDIR@@|$(ETCDIR)|g" \
|
2009-08-18 21:07:42 +05:30
|
|
|
-e "s|@@XBPS_INSTALL_SHAREDIR@@|$(SHAREDIR)|g" \
|
2009-08-17 22:37:20 +05:30
|
|
|
main.sh > xbps-src
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f $(BIN)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
install -d $(SBINDIR)
|
|
|
|
install -m 755 $(BIN) $(SBINDIR)
|