Makefile (594B)
1 # merge-hosts 2 3 VERSION = 0.01.0 4 5 PREFIX=/usr/local 6 BINDIR=${PREFIX}/bin 7 8 9 install: 10 install -Dm755 merge-hosts ${DESTDIR}${BINDIR}/merge-hosts 11 install -Dm644 hostsdir/* -t ${DESTDIR}/etc/hosts.d/ 12 13 uninstall: 14 rm -f ${DESTDIR}${BINDIR}/merge-hosts 15 @echo You need to manually remove the ${DESTDIR}/etc/hosts.d directory 16 17 dist: 18 mkdir -p merge-hosts-${VERSION} 19 cp -r LICENSE README Makefile hostsdir merge-hosts \ 20 merge-hosts-${VERSION} 21 tar -cf merge-hosts-${VERSION}.tar merge-hosts-${VERSION} 22 gzip merge-hosts-${VERSION}.tar 23 rm -rf merge-hosts-${VERSION} 24 25 .PHONY: install uninstall dist