Commit 12d0d18f070cbf4b2042eded10c7e82d19d91fff Parent: cf2e4f5bf42520863cc61534f69a4389c85c5ffb Author: mcol <mcol@posteo.net> Date: 2020-10-12 21:37:22 +0100 Committer: mcol <mcol@posteo.net> Committed: 2020-10-12 21:37:22 +0100 add makefile to copy hooks into /usr/lib
makefile Added
@@ -0,0 +1,19 @@ +PREFIX ?= /usr/lib/initcpio + +help: + @echo "make install: install files" + @echo "make uninstall: uninstall files" + +install: + @mkdir -p "$(PREFIX)/hooks" + @mkdir -p "$(PREFIX)/install" + @cp -f "hooks/welcome" "$(PREFIX)/hooks/" + @cp -f "install/welcome" "$(PREFIX)/install/" + @echo "Make sure to rebuild the initramfs to include these hooks" + +uninstall: + @rm -f "$(PREFIX)/hooks/welcome" + @rm -f "$(PREFIX)/install/welcome" + + +.PHONY: help install uninstall