192
|
1 CHROOT=/var/dgl
|
193
|
2 BINDIR=/usr/local/bin
|
192
|
3
|
|
4 WEBASSETS = about.html bell.svg index.html options.html options.js rlgterm.js \
|
|
5 style-rlg.css termemu.js termemu-keys.js tty.css
|
|
6
|
|
7 all: sqlickrypt dglwatcher
|
|
8
|
|
9 sqlickrypt: sqlickrypt.c
|
|
10 cc -o sqlickrypt sqlickrypt.c -lcrypt -lsqlite3
|
|
11
|
|
12 dglwatcher: dglwatcher.c
|
|
13 cc -o dglwatcher dglwatcher.c
|
|
14
|
|
15 clean:
|
|
16 rm -f sqlickrypt dglwatcher
|
|
17
|
|
18 install: all
|
|
19 mkdir -p ${CHROOT}/bin
|
|
20 cp sqlickrypt dglwatcher ${CHROOT}/bin
|
|
21 for LIB in `ldd ./sqlickrypt | awk '$$1 ~ "^/" {print $$1}; $$3 ~ "^/" {print $$3}'`; do mkdir -p ${CHROOT}`dirname $$LIB`; cp $$LIB ${CHROOT}$$LIB; done
|
193
|
22 cp rlgwebd.js rlgwebd-stop.js ${BINDIR}
|
192
|
23 mkdir -p /var/local/rlgwebd
|
|
24 cp ${WEBASSETS} ${CHROOT}/var/www
|
|
25 cp rlgwebd.service /usr/lib/systemd/system
|