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