2009-10-18 11:17:26 +02:00
|
|
|
include ../vars.mk
|
|
|
|
|
2010-05-06 01:21:27 +02:00
|
|
|
SCRIPTS = tmpl_funcs.sh chroot.sh init_funcs.sh pkgtarget_funcs.sh
|
2010-01-16 02:11:44 +01:00
|
|
|
|
2009-10-18 11:17:26 +02:00
|
|
|
.PHONY: all
|
|
|
|
all:
|
2010-01-16 02:11:44 +01:00
|
|
|
for f in $(SCRIPTS); do \
|
|
|
|
sed -e "s|@@XBPS_INSTALL_PREFIX@@|$(PREFIX)|g" \
|
|
|
|
-e "s|@@XBPS_INSTALL_SHAREDIR@@|$(SHAREDIR)|g" \
|
|
|
|
-e "s|@@XBPS_INSTALL_LIBEXECDIR@@|$(LIBEXECDIR)|g" \
|
|
|
|
$$f.in > $$f; \
|
|
|
|
done
|
2009-10-18 11:17:26 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2010-01-16 02:11:44 +01:00
|
|
|
-rm -f $(SCRIPTS)
|
2009-10-18 11:17:26 +02:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2009-11-22 08:31:44 +01:00
|
|
|
install -d $(DESTDIR)$(SHAREDIR)/shutils
|
|
|
|
install -m 644 *.sh $(DESTDIR)$(SHAREDIR)/shutils
|
2009-10-18 11:17:26 +02:00
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
2009-11-22 08:31:44 +01:00
|
|
|
-rm -rf $(DESTDIR)$(SHAREDIR)/shutils
|