Makefile (325B)
1 PREFIX=/usr/local 2 BINDIR=${PREFIX}/bin 3 ETCDIR=/etc 4 5 install: 6 mkdir -p ${DESTDIR}${ETCDIR}/zzz.d/suspend 7 mkdir -p ${DESTDIR}${ETCDIR}/zzz.d/resume 8 install -Dm755 nap ${DESTDIR}${BINDIR}/nap 9 10 uninstall: 11 rm -f ${DESTDIR}${BINDIR}/nap 12 @echo not removing /etc/zzz.d, you can remove \ 13 it manually 14 15 .PHONY: install uninstall