rlgwebd/Makefile
John "Elwin" Edwards 6457f18b36 Change various filenames.
The shell script previously used to launch the daemon is now called
"initscript".  The script files have had the ".js" extension removed
from their names.
2016-01-14 20:52:29 -05:00

24 lines
724 B
Makefile

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 rlgwebd-stop ${BINDIR}
cp ${WEBASSETS} ${CHROOT}/var/www
cp rlgwebd.service /usr/lib/systemd/system