-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from gnidorah/master
Use makefile
- Loading branch information
Showing
3 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CC = gcc | ||
PREFIX = /usr/local | ||
BINDIR = $(DESTDIR)$(PREFIX)/bin | ||
UDEVDIR = $(DESTDIR)/etc/udev/rules.d | ||
|
||
all: k380_conf | ||
|
||
k380_conf: | ||
$(CC) k380_conf.c -o k380_conf | ||
|
||
reload: | ||
udevadm control --reload | ||
|
||
install: k380_conf | ||
install -d $(BINDIR) | ||
install k380_conf fn_on.sh $(BINDIR) | ||
install -d $(UDEVDIR) | ||
echo "ACTION==\"add\", KERNEL==\"hidraw[0-9]*\", RUN+=\"$(BINDIR)/fn_on.sh /dev/%k\"" > $(UDEVDIR)/80-k380.rules | ||
|
||
clean: | ||
rm k380_conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You should create another release or change this line, since the release doesn't include the
Makefile
currently.Thanks!