bootstrap: Ignore more.
[platform/upstream/coreutils.git] / Makefile.am
1 # Make coreutils.                                       -*-Makefile-*-
2
3 # Copyright (C) 1990, 1993-2007 Free Software Foundation, Inc.
4
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18 SUBDIRS = lib src doc man po tests
19 EXTRA_DIST = Makefile.cfg Makefile.maint GNUmakefile \
20   .kludge-stamp .prev-version THANKS-to-translators THANKStt.in \
21   .vg-suppressions \
22   .x-po-check \
23   .x-sc_file_system .x-sc_obsolete_symbols \
24   .x-sc_prohibit_atoi_atof \
25   .x-sc_prohibit_strcmp \
26   .x-sc_require_config_h \
27   .x-sc_space_tab .x-sc_sun_os_names \
28   .x-sc_trailing_blank \
29   .x-sc_unmarked_diagnostics \
30   .x-sc_useless_cpp_parens \
31   ChangeLog-2005 \
32   bootstrap \
33   bootstrap.conf \
34   build-aux/cvsu \
35   build-aux/vc-list-files \
36   gl/modules/getloadavg.diff \
37   m4/ChangeLog \
38   old/fileutils/ChangeLog \
39   old/fileutils/ChangeLog-1997 \
40   old/fileutils/NEWS \
41   old/sh-utils/ChangeLog \
42   old/sh-utils/ChangeLog.0 \
43   old/sh-utils/NEWS \
44   old/textutils/ChangeLog \
45   old/textutils/NEWS
46
47 install-root:
48         cd src && $(MAKE) $@
49
50 ACLOCAL_AMFLAGS = -I m4
51
52 # Some tests always need root privileges, others need them only sometimes.
53 check-root:
54         cd tests && $(MAKE) $@
55
56 dist-hook:
57         test -x $(srcdir)/build-aux/install-sh
58
59 distcheck-hook:
60         $(MAKE) my-distcheck
61
62 # Just prior to distribution, ...
63 # transform the automake-generated rule that runs `rm -f rm'.
64 # On some systems, that command would fail with a diagnostic like
65 # `rm: cannot unlink `rm': Text file busy' when `.' appears so early
66 # in the shell's search path that running `rm' would run the `rm'
67 # executable in the current directory.
68 # Similarly, adjust the clean-binPROGRAMS rule.
69
70 rm_subst = \
71   s!(rm -f (rm|\$$\(bin_PROGRAMS\)))$$!$$1 > /dev/null 2>&1 || /bin/$$1!
72 MAINTAINERCLEANFILES = .kludge-stamp
73 .kludge-stamp: $(srcdir)/src/Makefile.in
74         perl -pi -e '$(rm_subst)' $(srcdir)/src/Makefile.in
75         touch $@
76
77
78 MAINTAINERCLEANFILES += THANKS-to-translators
79 THANKS-to-translators: po/LINGUAS THANKStt.in
80         (                                                               \
81           cat $(srcdir)/THANKStt.in;                                    \
82           for lang in `cat $(srcdir)/po/LINGUAS`; do                            \
83             echo http://www.iro.umontreal.ca/contrib/po/HTML/team-$$lang.html; \
84           done;                                                         \
85         ) > $@-tmp && mv $@-tmp $@