Add an uninstall target to the Makefile.

This is especially advantageous if libfaketime is built from source as
there isn't another convenient way to do a clean uninstall.

Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-04-26 17:25:55 +02:00
parent 46f6bd5b9b
commit cd0667a7a6

View File

@@ -82,3 +82,12 @@ install: libs
cp README "${DESTDIR}${PREFIX}/share/doc/faketime/README"
cp Changelog "${DESTDIR}${PREFIX}/share/doc/faketime/Changelog"
uninstall:
rm -f "${DESTDIR}${PREFIX}/lib/faketime/libfaketime.so.1"
rm -f "${DESTDIR}${PREFIX}/lib/faketime/libfaketimeMT.so.1"
rmdir "${DESTDIR}${PREFIX}/lib/faketime"
rm -f "${DESTDIR}${PREFIX}/bin/faketime"
rm -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1.gz"
rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/README"
rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/Changelog"
rmdir "${DESTDIR}${PREFIX}/share/doc/faketime"