void-packages/xbps-src/shutils/Makefile
Juan RP 481e74178e xbps-src: do not append $PATH to $PATH on every prepare_tmpl() call!
--HG--
rename : xbps-src/shutils/tmpl_funcs.sh => xbps-src/shutils/tmpl_funcs.sh.in
2010-05-06 01:21:27 +02:00

25 lines
564 B
Makefile

include ../vars.mk
SCRIPTS = tmpl_funcs.sh chroot.sh init_funcs.sh pkgtarget_funcs.sh
.PHONY: all
all:
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
.PHONY: clean
clean:
-rm -f $(SCRIPTS)
.PHONY: install
install:
install -d $(DESTDIR)$(SHAREDIR)/shutils
install -m 644 *.sh $(DESTDIR)$(SHAREDIR)/shutils
.PHONY: uninstall
uninstall:
-rm -rf $(DESTDIR)$(SHAREDIR)/shutils