VERSION = 0.1 PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man tmpl: tmpl.sh install: tmpl mkdir -p ${DESTDIR}${PREFIX}/bin cp -f tmpl ${DESTDIR}${PREFIX}/bin/tmpl chmod 755 ${DESTDIR}${PREFIX}/bin/tmpl mkdir -p ${DESTDIR}${MANPREFIX}/man1 sed "s/VERSION/${VERSION}/g" < tmpl.1 > ${DESTDIR}${MANPREFIX}/man1/tmpl.1 chmod 644 ${DESTDIR}${MANPREFIX}/man1/tmpl.1 uninstall: rm -f ${DESTDIR}${PREFIX}/bin/tmpl\ ${DESTDIR}${MANPREFIX}/man1/tmpl.1 clean: rm -f tmpl