aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 30d7bbb653f6d8817851e24674bbde0493c395bf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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