mirror of
https://github.com/ivabus/speakersafetyd
synced 2024-11-22 16:25:06 +03:00
Add Makefile
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
b1f65f5971
commit
a769d555e5
1 changed files with 26 additions and 0 deletions
26
Makefile
Normal file
26
Makefile
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# SPDX-Licence-Identifier: MIT
|
||||||
|
# Copyright The Asahi Linux Contributors
|
||||||
|
|
||||||
|
BINDIR ?= /usr/bin
|
||||||
|
UNITDIR ?= /lib/systemd/system
|
||||||
|
UDEVDIR ?= /lib/udev/rules.d
|
||||||
|
SHAREDIR ?= /usr/share/
|
||||||
|
VARDIR ?= /var/
|
||||||
|
|
||||||
|
all:
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -dDm0755 $(DESTDIR)/$(BINDIR)
|
||||||
|
install -pm0755 target/release/speakersafetyd $(DESTDIR)/$(BINDIR)/speakersafetyd
|
||||||
|
install -dDm0755 $(DESTDIR)/$(UNITDIR)
|
||||||
|
install -pm0644 speakersafetyd.service $(DESTDIR)/$(UNITDIR)/speakersafetyd.service
|
||||||
|
install -dDm0755 $(DESTDIR)/$(UDEVDIR)
|
||||||
|
install -pm0644 95-speakersafetyd.rules $(DESTDIR)/$(UDEVDIR)/95-speakersafetyd.rules
|
||||||
|
install -dDm0755 $(DESTDIR)/$(SHAREDIR)/speakersafetyd/apple
|
||||||
|
install -pm0644 -t $(DESTDIR)/$(SHAREDIR)/speakersafetyd/apple $(wildcard conf/apple/*)
|
||||||
|
install -dDm0755 $(DESTDIR)/$(VARDIR)/speakersafetyd/blackbox
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(DESTDIR)/$(BINDIR)/speakersafetyd $(DESTDIR)/$(UNITDIR)/speakersafetyd.service $(DESTDIR)/$(UDEVDIR)/95-speakersafetyd.rules
|
||||||
|
rm -rf $(DESTDIR)/$(SHAREDIR)/speakersafetyd
|
Loading…
Reference in a new issue