view Makefile @ 194:5483d413a45b

RLGWebD: move the control socket into /var/run. This is a more standard location. /run is preferred by systemd, but portability to non-systemd systems is important.
author John "Elwin" Edwards
date Thu, 14 Jan 2016 19:10:46 -0500
parents 80ca029f0906
children 3bdee6371c3f
line wrap: on
line source


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

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