diff options
author | Vitalie Ciubotaru <vitalie@ciubotaru.tk> | 2015-01-26 12:20:54 +0900 |
---|---|---|
committer | Vitalie Ciubotaru <vitalie@ciubotaru.tk> | 2015-01-26 12:20:54 +0900 |
commit | f139b2c9e4b1999ed91c1a672d6ee75e5956d734 (patch) | |
tree | b8f13cf9b3a3422d5c8420d9043200e9f939d45a | |
parent | 50e528b0e8b90b8d44fd8ccc868f64e1fd481087 (diff) | |
download | xlennart-f139b2c9e4b1999ed91c1a672d6ee75e5956d734.tar.gz xlennart-f139b2c9e4b1999ed91c1a672d6ee75e5956d734.tar.bz2 xlennart-f139b2c9e4b1999ed91c1a672d6ee75e5956d734.zip |
Tentative code for "make uninstall"
-rw-r--r-- | Makefile.in | 18 |
1 files changed, 18 insertions, 0 deletions
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 |