diff options
author | Gethyn ThomasQuail <xylem2020@gmail.com> | 2015-01-25 22:14:15 -0700 |
---|---|---|
committer | Gethyn ThomasQuail <xylem2020@gmail.com> | 2015-01-25 22:14:15 -0700 |
commit | 4ed5dba6627915e2a8ae456e2ca7aa3eea63ef09 (patch) | |
tree | b8f13cf9b3a3422d5c8420d9043200e9f939d45a | |
parent | 50e528b0e8b90b8d44fd8ccc868f64e1fd481087 (diff) | |
parent | f139b2c9e4b1999ed91c1a672d6ee75e5956d734 (diff) | |
download | xlennart-4ed5dba6627915e2a8ae456e2ca7aa3eea63ef09.tar.gz xlennart-4ed5dba6627915e2a8ae456e2ca7aa3eea63ef09.tar.bz2 xlennart-4ed5dba6627915e2a8ae456e2ca7aa3eea63ef09.zip |
Merge pull request #16 from ciubotaru/patch-1
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 |