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