test4.
[silc.git] / prepare-clean
1 #! /bin/sh
2 #
3 #  prepare-clean
4 #
5 #  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6 #
7 #  Copyright (C) 2000 Pekka Riikonen
8 #
9 #  This program is free software; you can redistribute it and/or modify
10 #  it under the terms of the GNU General Public License as published by
11 #  the Free Software Foundation; either version 2 of the License, or
12 #  (at your option) any later version.
13 #
14 #  This program is distributed in the hope that it will be useful,
15 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 #  GNU General Public License for more details.
18 #
19
20 #
21 # Removes *all* automatically generated files so that after calling this
22 # the tree is completely clean and can be prepared for configuration
23 # and compilation by calling ./prepare.
24 #
25
26 if [ -z "$MAKE" ]; then
27         MAKE=`which gmake`
28         if [ -z "$MAKE" ]; then
29                 MAKE=`which make`
30                 if [ -z "$MAKE" ]; then
31                         echo "Error, no [g]make in your path."
32                         exit 0
33                 fi
34         fi
35 fi
36 echo "Using $MAKE as a make program..."
37
38 echo "Cleaning entire SILC source tree..."
39 echo "All errors and warnings may be safely ignored."
40 $MAKE clean -k
41 $MAKE distclean -k
42 rm -f ltcf*
43 rm -f Makefile.am
44 rm -f Makefile.defines
45 rm -f Makefile.defines.in
46 rm -f Makefile.defines_int
47 rm -f Makefile.defines_int.in
48 rm -f acconfig.h
49 rm -f irssi/Makefile.defines
50 rm -f irssi/Makefile.defines.in
51 rm -f irssi/Makefile.defines_int
52 rm -f irssi/Makefile.defines_int.in
53 rm -f lib/Makefile.am
54 rm -f configure.in
55 rm -f includes/stamp-*
56 rm -f includes/silcconfig.*
57 rm -f includes/version_internal.h
58 rm -f includes/silcdefs.h.in
59 rm -f Makefile.in
60 rm -f doc/draft-*.txt
61 rm -f doc/Makefile.in
62 rm -f includes/Makefile.in
63 rm -f lib/Makefile.in
64 rm -f lib/contrib/Makefile.in
65 rm -f lib/silcclient/Makefile.in
66 rm -f lib/silccore/Makefile.in
67 rm -f lib/silcutil/Makefile.in
68 rm -f lib/silccrypt/Makefile.in
69 rm -f lib/silcmath/Makefile.in
70 rm -f lib/silcsim/Makefile.in
71 rm -f lib/silcsim/modules/Makefile.in
72 rm -f lib/silcske/Makefile.in
73 rm -rf lib/silcmath/gmp/.deps
74 rm -f silcd/Makefile.in silcd/log* silcd/*.log
75 rm -f silc/Makefile.in silc/log* silc/*.log
76 rm -f aclocal.m4
77 rm -f config.status
78 rm -f configure
79 cd irssi
80 rm -f COPYING
81 rm -f INSTALL
82 rm -f Makefile.in
83 rm -f */Makefile.in
84 rm -f */*/Makefile.in
85 rm -f */*/*/Makefile.in
86 rm -f */*/*/*/Makefile.in
87 rm -f default-theme.h
88 rm -f libtool-shared
89 rm -f stamp-*
90 rm -f docs/startup*.txt
91 cd docs/help
92 cp Makefile.am.gen ..
93 rm -f * 2>/dev/null
94 mv ../Makefile.am.gen .
95 cd ../..
96 rm -f docs/help/in/Makefile.am
97 echo "Done."