forked from thkala/actkbd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (29 loc) · 852 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# actkbd - A keyboard shortcut daemon
#
# Copyright (c) 2005-2006 Theodoros V. Kalamatianos <[email protected]>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
prefix := /usr/local
sbindir := $(prefix)/sbin
sysconfdir := /etc
# Yes, I am lazy...
VER := $(shell head -n 1 NEWS | cut -d : -f 1)
DEBUG :=
CFLAGS := -O2 -Wall $(DEBUG)
CPPFLAGS := -DVERSION=\"$(VER)\" -DCONFIG=\"$(sysconfdir)/actkbd.conf\"
all: actkbd
actkbd: actkbd.o mask.o config.o linux.o
actkbd.o : actkbd.h
mask.o : actkbd.h
config.o : actkbd.h config.c
linux.o : actkbd.h
install: all
install -D -m755 actkbd $(sbindir)/actkbd
install -d -m755 $(sysconfdir)
touch $(sysconfdir)/actkbd.conf
clean:
rm -f actkbd *.o