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