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