2009-10-18 09:17:26 +00:00
|
|
|
include ../vars.mk
|
|
|
|
|
2010-05-05 23:21:27 +00:00
|
|
|
SCRIPTS = tmpl_funcs.sh chroot.sh init_funcs.sh pkgtarget_funcs.sh
|
2010-01-16 01:11:44 +00:00
|
|
|
|
2009-10-18 09:17:26 +00:00
|
|
|
.PHONY: all
|
|
|
|
all:
|
2010-01-16 01:11:44 +00: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 09:17:26 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2010-01-16 01:11:44 +00:00
|
|
|
-rm -f $(SCRIPTS)
|
2009-10-18 09:17:26 +00:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2009-11-22 07:31:44 +00:00
|
|
|
install -d $(DESTDIR)$(SHAREDIR)/shutils
|
|
|
|
install -m 644 *.sh $(DESTDIR)$(SHAREDIR)/shutils
|
2009-10-18 09:17:26 +00:00
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
2009-11-22 07:31:44 +00:00
|
|
|
-rm -rf $(DESTDIR)$(SHAREDIR)/shutils
|