(SUBDIRS): Remove `old'.
[platform/upstream/coreutils.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2
3 SUBDIRS = lib src doc man m4 po tests
4 EXTRA_DIST = Makefile.cfg Makefile.maint GNUmakefile \
5   .kludge-stamp .prev-version THANKS-to-translators THANKStt.in \
6   old/fileutils/ChangeLog \
7   old/fileutils/ChangeLog-1997 \
8   old/sh-utils/ChangeLog \
9   old/sh-utils/ChangeLog.0 \
10   old/textutils/ChangeLog \
11   old/fileutils/NEWS \
12   old/sh-utils/NEWS \
13   old/textutils/NEWS
14
15 install-root:
16         cd src && $(MAKE) $@
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 # Some tests always need root privileges, others need them only sometimes.
21 check-root:
22         cd tests && $(MAKE) $@
23
24 distcheck-hook:
25         $(MAKE) my-distcheck
26
27 # Just prior to distribution, ...
28 # transform the automake-generated rule that runs `rm -f rm'.
29 # On some systems, that command would fail with a diagnostic like
30 # `rm: cannot unlink `rm': Text file busy' when `.' appears so early
31 # in the shell's search path that running `rm' would run the `rm'
32 # executable in the current directory.
33 # Similarly, adjust the clean-binPROGRAMS rule.
34
35 rm_subst = \
36   s!(rm -f (rm|\$$\(bin_PROGRAMS\)))$$!$$1 > /dev/null 2>&1 || /bin/$$1!
37 .kludge-stamp: $(srcdir)/src/Makefile.in
38         perl -pi -e '$(rm_subst)' $(srcdir)/src/Makefile.in
39         touch $@
40
41 THANKS-to-translators: po/LINGUAS THANKStt.in
42         (                                                               \
43           cat $(srcdir)/THANKStt.in;                                    \
44           for lang in `cat po/LINGUAS`; do                              \
45             echo http://www.iro.umontreal.ca/contrib/po/HTML/team-$$lang.html; \
46           done;                                                         \
47         ) > $@-tmp && mv $@-tmp $@