Makefile (845B)
1 # bfw 2 # See LICENSE file for copyright and license details. 3 4 include config.mk 5 6 all: 7 8 dist: 9 @echo creating dist tarball 10 @mkdir -p bfw-${VERSION} 11 @cp -R LICENSE Makefile README config.mk etc bin bfw-${VERSION} 12 @tar -cf bfw-${VERSION}.tar bfw-${VERSION} 13 @gzip bfw-${VERSION}.tar 14 @rm -rf bfw-${VERSION} 15 16 install: all 17 @echo installing script to ${DESTDIR}${PREFIX}/bin 18 @mkdir -p ${DESTDIR}${PREFIX}/bin 19 @cp -f bin/bfw ${DESTDIR}${PREFIX}/bin 20 @chmod 755 ${DESTDIR}${PREFIX}/bin/bfw 21 # @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 22 # @mkdir -p ${DESTDIR}${MANPREFIX}/man1 23 # @sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1 24 # @chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1 25 26 uninstall: 27 @echo removing script from ${DESTDIR}${PREFIX}/bin 28 @rm -f ${DESTDIR}${PREFIX}/bin/bfw 29 30 .PHONY: all dist install uninstall