mirror of
https://github.com/MatMoul/g810-led.git
synced 2025-11-21 02:52:06 +00:00
Improve code
This commit is contained in:
8
makefile
8
makefile
@@ -42,8 +42,12 @@ install:
|
||||
$(DESTDIR)/etc/$(PROGN)/samples \
|
||||
$(DESTDIR)$(SYSTEMDDIR)/system && \
|
||||
cp sample_profiles/* $(DESTDIR)/etc/$(PROGN)/samples && \
|
||||
test -s $(DESTDIR)/etc/$(PROGN)/profile || cp $(DESTDIR)/etc/$(PROGN)/samples/group_keys $(DESTDIR)/etc/$(PROGN)/profile && \
|
||||
test -s $(DESTDIR)/etc/$(PROGN)/reboot || cp $(DESTDIR)/etc/$(PROGN)/samples/all_off $(DESTDIR)/etc/$(PROGN)/reboot && \
|
||||
test -s $(DESTDIR)/etc/$(PROGN)/profile || \
|
||||
cp $(DESTDIR)/etc/$(PROGN)/samples/group_keys $(DESTDIR)/etc/$(PROGN)/profile
|
||||
@test -s /usr/bin/systemd-run && \
|
||||
test -s $(DESTDIR)/etc/$(PROGN)/reboot || \
|
||||
cp $(DESTDIR)/etc/$(PROGN)/samples/all_off $(DESTDIR)/etc/$(PROGN)/reboot
|
||||
@test -s /usr/bin/systemd-run && \
|
||||
cp systemd/$(PROGN).service $(DESTDIR)$(SYSTEMDDIR)/system && \
|
||||
cp systemd/$(PROGN)-reboot.service $(DESTDIR)$(SYSTEMDDIR)/system && \
|
||||
systemctl daemon-reload && \
|
||||
|
||||
Reference in New Issue
Block a user