mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-31 03:45:05 +00:00
40 lines
1.5 KiB
Makefile
40 lines
1.5 KiB
Makefile
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
|
info_TEXINFOS = coreutils.texi
|
|
|
|
EXTRA_DIST = perm.texi getdate.texi constants.texi doclicense.texi
|
|
|
|
# The following is necessary if the package name is 8 characters or longer.
|
|
# If the info documentation would be split into 10 or more separate files,
|
|
# then this is necessary even if the package name is 7 characters long.
|
|
#
|
|
# Tell makeinfo to put everything in a single info file: <package>.info.
|
|
# Otherwise, it would also generate files with names like <package>.info-[123],
|
|
# and those names all map to one 14-byte name (<package>.info-) on some crufty
|
|
# old systems.
|
|
MAKEINFO = makeinfo --no-split
|
|
|
|
# Remove `DISABLED_' when fileutils, textutils, and sh-utils have
|
|
# all been merged into one package.
|
|
DISABLED_constants.texi: $(top_srcdir)/src/tail.c
|
|
LC_ALL=C \
|
|
sed -n -e 's/^#define \(DEFAULT_MAX[_A-Z]*\) \(.*\)/@set \1 \2/p' \
|
|
$(top_srcdir)/src/tail.c > t-$@
|
|
mv t-$@ $@
|
|
|
|
# Uncomment this when fileutils, textutils, and sh-utils have
|
|
# all been merged into one package.
|
|
# MAINTAINERCLEANFILES = constants.texi
|
|
|
|
$(DVIS): $(EXTRA_DIST)
|
|
$(INFO_DEPS): $(EXTRA_DIST)
|
|
|
|
# List words/regexps here that should not appear in the texinfo documentation.
|
|
check-texinfo:
|
|
grep timezone $(srcdir)/*.texi && exit 1 || :
|
|
grep '\$$@"' $(srcdir)/*.texi && exit 1 || :
|
|
$(PERL) -ne \
|
|
'/\bPOSIX\b/ && !/\@acronym{POSIX}/ || /{posix}/ and print,exit 1' \
|
|
$(srcdir)/*.texi 2> /dev/null && : || exit 1
|
|
|
|
check: check-texinfo
|