aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Kiryukhin <i@neonxp.dev>2023-01-29 07:21:38 +0300
committerAlexander Kiryukhin <i@neonxp.dev>2023-01-29 07:21:38 +0300
commitfb1e31fd1968433ebbf5c34be0c78b4d33891af1 (patch)
tree9288a5d3cf7390299136df80aaa909bc0484bbe7 /Makefile
initialHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..30d7bbb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+huawei-sound-fix:
+ @gcc huawei_matebook14s_codec_fix.cpp -o huawei-sound-fix
+ @echo "Now run sudo make install"
+
+.PHONY:
+install: huawei-sound-fix
+ @cp huawei-sound-fix /usr/local/bin/
+ @chmod +x /usr/local/bin/huawei-sound-fix
+ @cp *.service /etc/systemd/system/
+ @systemctl daemon-reload
+ @systemctl enable huawei-codec-fix.service
+ @systemctl enable restart-huawei-codec-fix.service
+ @systemctl start huawei-codec-fix.service
+ @echo "Now reboot required"
+
+.PHONY:
+clear:
+ @rm huawei-sound-fix \ No newline at end of file