#! /bin/sh # # prepare-clean # # Author: Pekka Riikonen # # Copyright (C) 2000 Pekka Riikonen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # # Removes *all* automatically generated files so that after calling this # the tree is completely clean and can be prepared for configuration # and compilation by calling ./prepare. # if [ -z "$MAKE" ]; then MAKE=`which gmake` if [ -z "$MAKE" ]; then MAKE=`which make` if [ -z "$MAKE" ]; then echo "Error, no [g]make in your path." exit 0 fi fi fi echo "Using $MAKE as a make program..." echo "Cleaning entire SILC source tree..." echo "All errors and warnings may be safely ignored." $MAKE clean -k $MAKE distclean -k rm -f ltmain.sh rm -f ltconfig rm -f ltcf* rm -f Makefile.am rm -f Makefile.defines rm -f Makefile.defines.in rm -f Makefile.defines_int rm -f Makefile.defines_int.in rm -f acconfig.h rm -f irssi/Makefile.defines rm -f irssi/Makefile.defines.in rm -f irssi/Makefile.defines_int rm -f irssi/Makefile.defines_int.in rm -f lib/Makefile.am rm -f configure.in rm -f includes/stamp-* rm -f includes/silcconfig.* rm -f includes/version_internal.h rm -f includes/silcdefs.h.in rm -f Makefile.in rm -f doc/draft-*.txt rm -f doc/Makefile.in rm -f includes/Makefile.in rm -f lib/Makefile.in rm -f lib/contrib/Makefile.in rm -f lib/silcclient/Makefile.in rm -f lib/silccore/Makefile.in rm -f lib/silcutil/Makefile.in rm -f lib/silccrypt/Makefile.in rm -f lib/silcmath/Makefile.in rm -f lib/silcsim/Makefile.in rm -f lib/silcsim/modules/Makefile.in rm -f lib/silcske/Makefile.in rm -f lib/trq/tests/Makefile rm -f lib/trq/trq_test/Makefile rm -rf lib/silcmath/gmp/.deps rm -f silcd/Makefile.in silcd/log* silcd/*.log rm -f silc/Makefile.in silc/log* silc/*.log rm -f aclocal.m4 rm -f config.status rm -f configure cd irssi rm -f COPYING rm -f INSTALL rm -f Makefile.in rm -f */Makefile.in rm -f */*/Makefile.in rm -f */*/*/Makefile.in rm -f */*/*/*/Makefile.in rm -f default-theme.h rm -f libtool-shared rm -f stamp-* rm -f docs/startup*.txt cd docs/help cp Makefile.am.gen .. rm -f * 2>/dev/null mv ../Makefile.am.gen . cd ../.. rm -f docs/help/in/Makefile.am echo "Done."