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