Makefile (858B)
1 # watch_mdbox - watch a dbox for changes 2 # See LICENSE file for copyright and license details. 3 4 include config.mk 5 6 all: 7 @echo watch_mdbox is just a script, so there is only make install left. 8 9 dist: 10 @echo creating dist tarball 11 @mkdir -p watch_mdbox-${VERSION} 12 @cp -R LICENSE README.md Makefile config.mk bin \ 13 home watch_mdbox-${VERSION} 14 @tar -cf watch_mdbox-${VERSION}.tar watch_mdbox-${VERSION} 15 @gzip watch_mdbox-${VERSION}.tar 16 @rm -rf watch_mdbox-${VERSION} 17 18 install: 19 @echo installing watch_mdbox script to ${DESTDIR}${PREFIX}/bin 20 @cp bin/watch_mdbox ${DESTDIR}${PREFIX}/bin 21 @chmod 755 ${DESTDIR}${PREFIX}/bin/watch_mdbox 22 @echo See home/mswatchrc for an example how to use it in mswatch. 23 24 uninstall: 25 @echo removing watch_mdbox script from ${DESTDIR}${PREFIX}/bin 26 @rm -f ${DESTDIR}${PREFIX}/bin/watch_mdbox 27 28 .PHONY: dist install uninstall 29