diff options
-rwxr-xr-x | configure | 39 |
1 files changed, 27 insertions, 12 deletions
@@ -90,18 +90,6 @@ rm -f CMakeCache.txt cmake . ${PARAMS} -DPREFIX:STRING=${PREFIX} ec=$? if [ $ec = 0 ]; then - cat >> Makefile <<EOF -dist-clean : clean - find -type d -name "CMakeFiles" | xargs rm -rf - find -type f -name "cmake_install.cmake" | xargs rm -rf - find -type f -name CMakeCache.txt | xargs rm -rf - find -type f -name install_manifest.txt | xargs rm -rf - find -type f -name Makefile | xargs rm -rf - find -type f -name "*~" | xargs rm -f - rm -f CMakeCache.txt - -EOF - echo echo echo "eurephia will be built with support for: " @@ -125,5 +113,32 @@ EOF echo fi fi + + # Update Makefile with distclean and uninstall rules + cat >> Makefile <<EOF +distclean : clean + find -type d -name "CMakeFiles" | xargs rm -rf + find -type f -name "cmake_install.cmake" | xargs rm -rf + find -type f -name CMakeCache.txt | xargs rm -rf + find -type f -name install_manifest.txt | xargs rm -rf + find -type f -name Makefile | xargs rm -rf + find -type f -name "*~" | xargs rm -f + rm -f CMakeCache.txt + +uninstall : + @echo "Uninstalling eurephia: " + cat install_manifest.txt | xargs rm -vf +EOF + if [ ! -z ${DB} ]; then + if [ ${SQLITE3PREFIX} != ${PREFIX} ]; then + cat >> Makefile <<EOF + rmdir -v ${SQLITE3PREFIX} +EOF + fi + fi + cat >> Makefile <<EOF + rmdir -v ${PREFIX} +EOF + fi exit $? |