From f139b2c9e4b1999ed91c1a672d6ee75e5956d734 Mon Sep 17 00:00:00 2001 From: Vitalie Ciubotaru Date: Mon, 26 Jan 2015 12:20:54 +0900 Subject: Tentative code for "make uninstall" --- Makefile.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Makefile.in b/Makefile.in index 3fad019..4737b6e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -98,6 +98,24 @@ install: ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${datadir}/xlennart/bitmaps ; \ done +uninstall: + if [ -f ${DESTDIR}${bindir}/${PROG} ] ; \ + then \ + rm ${DESTDIR}${bindir}/${PROG} ; \ + fi; + if [ -f ${DESTDIR}${mandir}/${MANDIR}/${MAN} ] ; \ + then \ + rm ${DESTDIR}${mandir}/${MANDIR}/${MAN} ; \ + fi; + if [ -f ${DESTDIR}${localstatedir}/games/xlennart.scores.default ] ; \ + then \ + rm ${DESTDIR}${localstatedir}/games/xlennart.scores.default ; \ + fi; + if [ -d ${DESTDIR}${datadir}/xlennart ] ; \ + then \ + rm -r ${DESTDIR}${datadir}/xlennart ; \ + fi; + distclean:: rm -f config.cache config.h config.log config.status Makefile -- cgit v1.2.3