Mercurial > hg > rlgwebd
comparison 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 |
comparison
equal
deleted
inserted
replaced
195:3bdee6371c3f | 196:298a531776d6 |
---|---|
18 install: all | 18 install: all |
19 mkdir -p ${CHROOT}/bin | 19 mkdir -p ${CHROOT}/bin |
20 cp sqlickrypt dglwatcher ${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 | 21 for LIB in `ldd ./sqlickrypt | awk '$$1 ~ "^/" {print $$1}; $$3 ~ "^/" {print $$3}'`; do mkdir -p ${CHROOT}`dirname $$LIB`; cp $$LIB ${CHROOT}$$LIB; done |
22 cp rlgwebd rlgwebd-stop ${BINDIR} | 22 cp rlgwebd rlgwebd-stop ${BINDIR} |
23 mkdir -p ${CHROOT}/var/www | |
23 cp ${WEBASSETS} ${CHROOT}/var/www | 24 cp ${WEBASSETS} ${CHROOT}/var/www |
24 cp rlgwebd.service /usr/lib/systemd/system | 25 cp rlgwebd.service /usr/lib/systemd/system |
26 | |
27 # Libraries are not removed. Something else might be using them. | |
28 uninstall: | |
29 rm -rf ${CHROOT}/var/www | |
30 rm -f ${CHROOT}/bin/sqlickrypt | |
31 rm -f ${CHROOT}/bin/dglwatcher | |
32 rm -f ${BINDIR}/rlgwebd ${BINDIR}/rlgwebd-stop | |
33 rm -f /usr/lib/systemd/system/rlgwebd.service |