Mercurial > hg > rlgwebd
annotate Makefile @ 199:34e1bc4fd6b2
Some fixes to the documentation.
| author | John "Elwin" Edwards | 
|---|---|
| date | Mon, 01 Feb 2016 21:20:12 -0500 | 
| parents | 298a531776d6 | 
| children | 7f25bb89b59c | 
| rev | line source | 
|---|---|
| 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 | |
| 195 | 22 cp rlgwebd rlgwebd-stop ${BINDIR} | 
| 196 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 23 mkdir -p ${CHROOT}/var/www | 
| 192 | 24 cp ${WEBASSETS} ${CHROOT}/var/www | 
| 25 cp rlgwebd.service /usr/lib/systemd/system | |
| 196 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 26 | 
| 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 27 # Libraries are not removed. Something else might be using them. | 
| 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 28 uninstall: | 
| 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 29 rm -rf ${CHROOT}/var/www | 
| 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 30 rm -f ${CHROOT}/bin/sqlickrypt | 
| 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 31 rm -f ${CHROOT}/bin/dglwatcher | 
| 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 32 rm -f ${BINDIR}/rlgwebd ${BINDIR}/rlgwebd-stop | 
| 
298a531776d6
Add an uninstall target to the Makefile.
 John "Elwin" Edwards parents: 
195diff
changeset | 33 rm -f /usr/lib/systemd/system/rlgwebd.service | 
