revert last change: I am removing POSIX from the offending (cksum) line altogether
[platform/upstream/coreutils.git] / doc / Makefile.am
1 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
2 info_TEXINFOS = coreutils.texi
3
4 EXTRA_DIST = perm.texi getdate.texi constants.texi doclicense.texi
5
6 # The following is necessary if the package name is 8 characters or longer.
7 # If the info documentation would be split into 10 or more separate files,
8 # then this is necessary even if the package name is 7 characters long.
9 #
10 # Tell makeinfo to put everything in a single info file: <package>.info.
11 # Otherwise, it would also generate files with names like <package>.info-[123],
12 # and those names all map to one 14-byte name (<package>.info-) on some crufty
13 # old systems.
14 MAKEINFO = makeinfo --no-split
15
16 # Remove `DISABLED_' when fileutils, textutils, and sh-utils have
17 # all been merged into one package.
18 DISABLED_constants.texi: $(top_srcdir)/src/tail.c
19         LC_ALL=C \
20         sed -n -e 's/^#define \(DEFAULT_MAX[_A-Z]*\) \(.*\)/@set \1 \2/p' \
21           $(top_srcdir)/src/tail.c > t-$@
22         mv t-$@ $@
23
24 # Uncomment this when fileutils, textutils, and sh-utils have
25 # all been merged into one package.
26 # MAINTAINERCLEANFILES = constants.texi
27
28 $(DVIS): $(EXTRA_DIST)
29 $(INFO_DEPS): $(EXTRA_DIST)
30
31 # List words/regexps here that should not appear in the texinfo documentation.
32 check-texinfo:
33         grep timezone $(srcdir)/*.texi && exit 1 || :
34         grep '\$$@"' $(srcdir)/*.texi && exit 1 || :
35         $(PERL) -ne \
36           '/\bPOSIX\b/ && !/\@acronym{POSIX}/ || /{posix}/ and print,exit 1' \
37           $(srcdir)/*.texi 2> /dev/null && : || exit 1
38
39 check: check-texinfo