Mercurial > hg > rlgwebd
diff Makefile @ 196:298a531776d6
Add an uninstall target to the Makefile.
Also a fix to the install target, and the initscript.
author | John "Elwin" Edwards |
---|---|
date | Thu, 14 Jan 2016 21:30:14 -0500 |
parents | 3bdee6371c3f |
children | 7f25bb89b59c |
line wrap: on
line diff
--- a/Makefile Thu Jan 14 20:52:29 2016 -0500 +++ b/Makefile Thu Jan 14 21:30:14 2016 -0500 @@ -20,5 +20,14 @@ 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} + mkdir -p ${CHROOT}/var/www cp ${WEBASSETS} ${CHROOT}/var/www cp rlgwebd.service /usr/lib/systemd/system + +# Libraries are not removed. Something else might be using them. +uninstall: + rm -rf ${CHROOT}/var/www + rm -f ${CHROOT}/bin/sqlickrypt + rm -f ${CHROOT}/bin/dglwatcher + rm -f ${BINDIR}/rlgwebd ${BINDIR}/rlgwebd-stop + rm -f /usr/lib/systemd/system/rlgwebd.service