forked from ecraven/g13
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 736 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (23 loc) · 736 Bytes
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
GROUP = 'usb'
PREFIX = '.'
all: g13d pbm2lpbm 91-g13.rules clock.sh
g13d: g13.h g13.cc
g++ -o g13d -std=c++0x g13.cc -lusb-1.0
pbm2lpbm: pbm2lpbm.c
g++ -o pbm2lpbm pbm2lpbm.c
91-g13.rules: 91-g13.rules.tmpl
sed 's/!!GROUP!!/${GROUP}/' 91-g13.rules.tmpl > 91-g13.rules
clock.sh: clock.sh.tmpl
sed 's|\!\!PREFIX\!\!|${PREFIX}|' clock.sh.tmpl > clock.sh
install: all
install -m 755 -D g13d ${PREFIX}/g13d
install -m 755 -D clock.sh ${PREFIX}/g13-clock.sh
install -m 755 -D pbm2lpbm ${PREFIX}/pbm2lpbm
package:
rm -Rf g13-userspace
mkdir g13-userspace
cp g13.cc g13.h logo.h Makefile pbm2lpbm.c g13-userspace
tar cjf g13-userspace.tbz2 g13-userspace
rm -Rf g13-userspace
clean:
rm -f g13 pbm2lpbm clock.sh 91-g13.rules