void-packages/xbps-src/shutils/Makefile

26 lines
550 B
Makefile

include ../vars.mk
SCRIPTS = 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