-rw-r--r-- makefile
1 PREFIX ?= /usr/lib/initcpio 2 3 help: 4 @echo "make install: install files" 5 @echo "make uninstall: uninstall files" 6 7 install: 8 @mkdir -p "$(PREFIX)/hooks" 9 @mkdir -p "$(PREFIX)/install" 10 @cp -f "hooks/welcome" "$(PREFIX)/hooks/" 11 @cp -f "install/welcome" "$(PREFIX)/install/" 12 @echo "Make sure to rebuild the initramfs to include these hooks" 13 14 uninstall: 15 @rm -f "$(PREFIX)/hooks/welcome" 16 @rm -f "$(PREFIX)/install/welcome" 17 18 19 .PHONY: help install uninstall 20