void-packages/xbps-src/Makefile
Juan RP 745192ef37 Added xbps-src and its associated code again.
It's better to keep it outside of XBPS.

--HG--
extra : convert_revision : 34f9c316585b972158d6ee55492c02c9bc5d3fcd
2009-10-18 11:17:26 +02:00

36 lines
691 B
Makefile

include vars.mk
BIN = xbps-src
SUBDIRS = etc shutils
.PHONY: all
all:
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" \
-e "s|@@XBPS_INSTALL_ETCDIR@@|$(ETCDIR)|g" \
-e "s|@@XBPS_INSTALL_SHAREDIR@@|$(SHAREDIR)|g" \
$(BIN).sh.in > $(BIN)
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir; \
done
.PHONY: clean
clean:
-rm -f $(BIN)
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean; \
done
.PHONY: install
install: all
install -d $(SBINDIR)
install -m 755 $(BIN) $(SBINDIR)
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir install; \
done
.PHONY: uninstall
uninstall:
-rm -f $(SBINDIR)/$(BIN)
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir uninstall; \
done