d229699b3eb6ddda2c7b4bc00396d960e820aa39
[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 echo "Cleaning entire SILC source tree..."
27 echo "All errors and warnings may be safely ignored."
28 make clean -k
29 make distclean -k
30 rm -f Makefile.am
31 rm -f Makefile.defines
32 rm -f Makefile.defines.in
33 rm -f Makefile.defines_int
34 rm -f Makefile.defines_int.in
35 rm -f irssi/Makefile.defines
36 rm -f irssi/Makefile.defines.in
37 rm -f irssi/Makefile.defines_int
38 rm -f irssi/Makefile.defines_int.in
39 rm -f lib/Makefile.am
40 rm -f configure.in
41 rm -f includes/stamp-*
42 rm -f includes/silcconfig.*
43 rm -f includes/version_internal.h
44 rm -f includes/silcdefs.h.in
45 rm -f Makefile.in
46 rm -f doc/draft-*.txt
47 rm -f doc/Makefile.in
48 rm -f includes/Makefile.in
49 rm -f lib/Makefile.in
50 rm -f lib/contrib/Makefile.in
51 rm -f lib/silcclient/Makefile.in
52 rm -f lib/silccore/Makefile.in
53 rm -f lib/silcutil/Makefile.in
54 rm -f lib/silccrypt/Makefile.in
55 rm -f lib/silcmath/Makefile.in
56 rm -f lib/silcsim/Makefile.in
57 rm -f lib/silcsim/modules/Makefile.in
58 rm -f lib/silcske/Makefile.in
59 rm -f lib/trq/tests/Makefile
60 rm -f lib/trq/trq_test/Makefile
61 rm -rf lib/silcmath/gmp/.deps
62 rm -f silcd/Makefile.in silcd/log* silcd/*.log
63 rm -f silc/Makefile.in silc/log* silc/*.log
64 rm -f aclocal.m4
65 rm -f config.status
66 rm -f configure
67 cd irssi
68 rm -f COPYING
69 rm -f INSTALL
70 rm -f Makefile.in
71 rm -f */Makefile.in
72 rm -f */*/Makefile.in
73 rm -f */*/*/Makefile.in
74 rm -f */*/*/*/Makefile.in
75 rm -f default-theme.h
76 rm -f libtool-shared
77 rm -f stamp-*
78 rm -f docs/startup*.txt
79 cd docs/help
80 cp Makefile.am.gen ..
81 rm -f * 2>/dev/null
82 mv ../Makefile.am.gen .
83 cd ../..
84 rm -f docs/help/in/Makefile.am
85 echo "Done."