VERSION = 0.0.1 PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man undervolt: undervolt.sh install: undervolt mkdir -p ${DESTDIR}${PREFIX}/bin cp -f undervolt ${DESTDIR}${PREFIX}/bin/undervolt chmod 755 ${DESTDIR}${PREFIX}/bin/undervolt # TODO: add a manual page # mkdir -p ${DESTDIR}${MANPREFIX}/man1 # sed "s/VERSION/${VERSION}/g" < undervolt.1 > ${DESTDIR}${MANPREFIX}/man1/undervolt.1 # chmod 644 ${DESTDIR}${MANPREFIX}/man1/undervolt.1 uninstall: rm -f ${DESTDIR}${PREFIX}/bin/undervolt\ ${DESTDIR}${MANPREFIX}/man1/undervolt.1 clean: rm -f undervolt