annotate Makefile @ 193:80ca029f0906

Add a script to stop RLGWebD. socat is no longer needed, nor is preventing systemd from sending signals.
author John "Elwin" Edwards
date Sat, 02 Jan 2016 14:33:48 -0500
parents addc4e3456c4
children 5483d413a45b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
192
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
1 CHROOT=/var/dgl
193
80ca029f0906 Add a script to stop RLGWebD.
John "Elwin" Edwards
parents: 192
diff changeset
2 BINDIR=/usr/local/bin
192
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
3
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
4 WEBASSETS = about.html bell.svg index.html options.html options.js rlgterm.js \
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
5 style-rlg.css termemu.js termemu-keys.js tty.css
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
6
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
7 all: sqlickrypt dglwatcher
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
8
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
9 sqlickrypt: sqlickrypt.c
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
10 cc -o sqlickrypt sqlickrypt.c -lcrypt -lsqlite3
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
11
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
12 dglwatcher: dglwatcher.c
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
13 cc -o dglwatcher dglwatcher.c
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
14
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
15 clean:
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
16 rm -f sqlickrypt dglwatcher
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
17
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
18 install: all
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
19 mkdir -p ${CHROOT}/bin
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
20 cp sqlickrypt dglwatcher ${CHROOT}/bin
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
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
80ca029f0906 Add a script to stop RLGWebD.
John "Elwin" Edwards
parents: 192
diff changeset
22 cp rlgwebd.js rlgwebd-stop.js ${BINDIR}
192
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
23 mkdir -p /var/local/rlgwebd
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
24 cp ${WEBASSETS} ${CHROOT}/var/www
addc4e3456c4 Begin adding systemd compatibility.
John "Elwin" Edwards
parents:
diff changeset
25 cp rlgwebd.service /usr/lib/systemd/system