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