Mercurial > hg > rlgwebd
view 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 |
line wrap: on
line source
CHROOT=/var/dgl BINDIR=/usr/local/bin WEBASSETS = about.html bell.svg index.html options.html options.js rlgterm.js \ style-rlg.css termemu.js termemu-keys.js tty.css all: sqlickrypt dglwatcher sqlickrypt: sqlickrypt.c cc -o sqlickrypt sqlickrypt.c -lcrypt -lsqlite3 dglwatcher: dglwatcher.c cc -o dglwatcher dglwatcher.c clean: rm -f sqlickrypt dglwatcher install: all mkdir -p ${CHROOT}/bin cp sqlickrypt dglwatcher ${CHROOT}/bin for LIB in `ldd ./sqlickrypt | awk '$$1 ~ "^/" {print $$1}; $$3 ~ "^/" {print $$3}'`; do mkdir -p ${CHROOT}`dirname $$LIB`; cp $$LIB ${CHROOT}$$LIB; done cp rlgwebd.js rlgwebd-stop.js ${BINDIR} mkdir -p /var/local/rlgwebd cp ${WEBASSETS} ${CHROOT}/var/www cp rlgwebd.service /usr/lib/systemd/system