From 2d102f04d7b5b64053fee350a156db41dd3859fb Mon Sep 17 00:00:00 2001 From: q3aql Date: Tue, 27 Aug 2024 15:47:06 +0200 Subject: [PATCH] Makefile --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 Makefile diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..a3aac98 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +################### +# Install freqcpu # +################### + +PREFIX=/usr + +install: + cp -rf freqcpu $(PREFIX)/bin/ + chmod +x $(PREFIX)/bin/freqcpu + cp -rf freqcpu.1 $(PREFIX)/share/man/man1/ + cp -rf freqcpu.service /etc/systemd/system/ + +uninstall: + rm -rf $(PREFIX)/bin/freqcpu + rm -rf $(PREFIX)/share/man/man1/freqcpu.1 + rm -rf /etc/systemd/system/freqcpu.service