forked from gandro/input-event-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 900 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
all: input-event-daemon docs/input-event-daemon.8 docs/input-event-daemon.html
input-event-daemon: input-event-daemon.c input-event-daemon.h input-event-table.h
$(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
input-event-table.h: /usr/include/linux/input.h
awk -f parse_input_h.awk < $< > $@
docs/input-event-daemon.8: docs/input-event-daemon.txt
a2x -f manpage $<
docs/input-event-daemon.html: docs/input-event-daemon.txt
asciidoc $<
clean:
rm -f input-event-daemon
install:
install -D -m 755 input-event-daemon $(DESTDIR)/usr/bin/input-event-daemon
install -D -m 644 docs/input-event-daemon.8 $(DESTDIR)/usr/share/man/man8/input-event-daemon.8
install -D -b -m 644 docs/sample.conf $(DESTDIR)/etc/input-event-daemon.conf.sample
uninstall:
rm -f $(DESTDIR)/usr/bin/input-event-daemon
rm -f $(DESTDIR)/usr/share/man/man8/input-event-daemon.8
rm -f $(DESTDIR)/etc/input-event-daemon.conf.sample