1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 09:16:11 +00:00

Update make install (add ln g410-led, g610-led and g910-led

This commit is contained in:
MatMoul 2017-01-04 23:56:41 +01:00
parent c341222670
commit 3f92a41d31

View File

@ -23,6 +23,9 @@ install:
@sudo cp sample_profiles/* /etc/$(PROGN)/samples @sudo cp sample_profiles/* /etc/$(PROGN)/samples
@sudo cp udev/$(PROGN).rules /etc/udev/rules.d @sudo cp udev/$(PROGN).rules /etc/udev/rules.d
@sudo cp bin/$(PROGN) /usr/bin @sudo cp bin/$(PROGN) /usr/bin
@sudo ln -s /usr/bin/g810-led /usr/bin/g410-led
@sudo ln -s /usr/bin/g810-led /usr/bin/g610-led
@sudo ln -s /usr/bin/g810-led /usr/bin/g910-led
@sudo test -s /etc/$(PROGN)/profile || sudo cp /etc/$(PROGN)/samples/group_keys /etc/$(PROGN)/profile @sudo test -s /etc/$(PROGN)/profile || sudo cp /etc/$(PROGN)/samples/group_keys /etc/$(PROGN)/profile
@sudo test -s /etc/$(PROGN)/reboot || sudo cp /etc/$(PROGN)/samples/all_off /etc/$(PROGN)/reboot @sudo test -s /etc/$(PROGN)/reboot || sudo cp /etc/$(PROGN)/samples/all_off /etc/$(PROGN)/reboot
@sudo cp systemd/$(PROGN).service /lib/systemd/system @sudo cp systemd/$(PROGN).service /lib/systemd/system
@ -37,5 +40,8 @@ uninstall:
@sudo rm /lib/systemd/system/$(PROGN).service @sudo rm /lib/systemd/system/$(PROGN).service
@sudo rm /lib/systemd/system/$(PROGN)-reboot.service @sudo rm /lib/systemd/system/$(PROGN)-reboot.service
@sudo rm /etc/udev/rules.d/$(PROGN).rules @sudo rm /etc/udev/rules.d/$(PROGN).rules
@sudo rm /usr/bin/g410-led
@sudo rm /usr/bin/g610-led
@sudo rm /usr/bin/g910-led
@sudo rm /usr/bin/$(PROGN) @sudo rm /usr/bin/$(PROGN)
@sudo rm -R /etc/$(PROGN) @sudo rm -R /etc/$(PROGN)