File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11# This makefile exists to allow for an install target, since it seems
22# cargo install is too basic to handle installing system services properly.
33
4+ CARGO_FLAGS ?=
45DESTDIR ?=
56PREFIX ?= /usr/local
67BINDIR ?= $(PREFIX ) /bin
7- CONFDIR ?= $(PREFIX ) /etc/conf.d
8+ ETCDIR ?= $(PREFIX ) /etc
9+
10+ CONFDIR ?= $(ETCDIR ) /conf.d
811SYSTEMDDIR ?= $(PREFIX ) /lib/systemd/system
912
1013PROG := target/release/keyboard-backlightd
@@ -13,7 +16,7 @@ all: $(PROG)
1316
1417$(PROG ) :
1518 # Let cargo figure out if a build is needed
16- cargo build --release
19+ cargo build --release $( CARGO_FLAGS )
1720
1821etc/keyboard-backlightd.service : etc/keyboard-backlightd.service.in Makefile
1922 sed -e " s#{BINDIR}#$( BINDIR) #" -e " s#{PREFIX}#$( PREFIX) #" $< > $@
You can’t perform that action at this time.
0 commit comments