shell script to undervolt AMD Ryzen laptops
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amd_laptop_undervolt/Makefile

26 lines
791 B

2 years ago
VERSION = 0.0.1
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
undervolt: undervolt.sh
powersave: powersave.sh
2 years ago
install: undervolt powersave
2 years ago
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f undervolt ${DESTDIR}${PREFIX}/bin/undervolt
cp -f powersave ${DESTDIR}${PREFIX}/bin/powersave
2 years ago
chmod 755 ${DESTDIR}${PREFIX}/bin/undervolt
chmod 755 ${DESTDIR}${PREFIX}/bin/powersave
2 years ago
# 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 \
${DESTDIR}${PREFIX}/bin/powersave
2 years ago
clean:
rm -f undervolt