* Makefile.am (EXTRA_DIST): Add a few more .??* files.
[platform/upstream/coreutils.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
3 SUBDIRS = lib src doc man po tests
4 EXTRA_DIST = Makefile.cfg Makefile.maint GNUmakefile \
5   .gitignore \
6   .kludge-stamp .prev-version THANKS-to-translators THANKStt.in \
7   .vg-suppressions \
8   .x-po-check \
9   .x-sc_space_tab .x-sc_sun_os_names \
10   .x-sc_file_system .x-sc_obsolete_symbols \
11   .x-sc_unmarked_diagnostics \
12   .x-sc_useless_cpp_parens \
13   .x-sc_no_if_have_config_h \
14   .x-sc_require_config_h \
15   .x-sc_prohibit_assert_without_use \
16   .x-sc_prohibit_atoi_atof \
17   .x-sc_trailing_blank \
18   .x-sc_two_space_separator_in_usage \
19   announce-gen \
20   build-aux/cvsu \
21   m4/ChangeLog \
22   ChangeLog-2005 \
23   old/fileutils/ChangeLog \
24   old/fileutils/ChangeLog-1997 \
25   old/sh-utils/ChangeLog \
26   old/sh-utils/ChangeLog.0 \
27   old/textutils/ChangeLog \
28   old/fileutils/NEWS \
29   old/sh-utils/NEWS \
30   old/textutils/NEWS
31
32 install-root:
33         cd src && $(MAKE) $@
34
35 ACLOCAL_AMFLAGS = -I m4
36
37 # Some tests always need root privileges, others need them only sometimes.
38 check-root:
39         cd tests && $(MAKE) $@
40
41 dist-hook:
42         test -x $(srcdir)/build-aux/install-sh
43
44 distcheck-hook:
45         $(MAKE) my-distcheck
46
47 # Just prior to distribution, ...
48 # transform the automake-generated rule that runs `rm -f rm'.
49 # On some systems, that command would fail with a diagnostic like
50 # `rm: cannot unlink `rm': Text file busy' when `.' appears so early
51 # in the shell's search path that running `rm' would run the `rm'
52 # executable in the current directory.
53 # Similarly, adjust the clean-binPROGRAMS rule.
54
55 rm_subst = \
56   s!(rm -f (rm|\$$\(bin_PROGRAMS\)))$$!$$1 > /dev/null 2>&1 || /bin/$$1!
57 .kludge-stamp: $(srcdir)/src/Makefile.in
58         perl -pi -e '$(rm_subst)' $(srcdir)/src/Makefile.in
59         touch $@
60
61
62 MAINTAINERCLEANFILES = THANKS-to-translators
63 THANKS-to-translators: po/LINGUAS THANKStt.in
64         (                                                               \
65           cat $(srcdir)/THANKStt.in;                                    \
66           for lang in `cat po/LINGUAS`; do                              \
67             echo http://www.iro.umontreal.ca/contrib/po/HTML/team-$$lang.html; \
68           done;                                                         \
69         ) > $@-tmp && mv $@-tmp $@