From 03c75c44272fafbdc68ad57c2895873f73a46a27 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 12 May 2015 22:34:18 +0000 Subject: latex2e-help-texinfo (12may15) git-svn-id: svn://tug.org/texlive/trunk@37355 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/latex2e-help-texinfo/Makefile | 100 ++++++++++++++++----- 1 file changed, 77 insertions(+), 23 deletions(-) (limited to 'Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile') diff --git a/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile b/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile index 8e9050be5ad..8ccecf34c77 100644 --- a/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile +++ b/Master/texmf-dist/doc/latex/latex2e-help-texinfo/Makefile @@ -1,6 +1,21 @@ +# $Id: Makefile 333 2015-05-12 17:12:37Z karl $ # Public domain. Originally written 2006, Karl Berry. # Makefile for latexrefman. +en_tex_output = latex2e.dvi latex2e.pdf +es_tex_output = latex2e-es.dvi latex2e-es.pdf +fr_tex_output = latex2e-fr.dvi latex2e-fr.pdf +# +mi_suffixes = dbk html info txt xml +en_mi_output = $(addprefix latex2e., $(mi_suffixes)) +es_mi_output = $(addprefix latex2e-es., $(mi_suffixes)) +fr_mi_output = $(addprefix latex2e-fr., $(mi_suffixes)) +# +all_suffixes = dvi pdf $(mi_suffixes) + + +# how to build. +# texi2dvi = texi2dvi --batch --tidy --build-dir=$*.t2dvi texi2pdf = texi2pdf --batch --tidy --build-dir=$*.t2pdf # @@ -8,13 +23,14 @@ makeinfo = makeinfo texi2docbook = $(makeinfo) --docbook texi2html = $(makeinfo) --html --no-split texi2info = $(makeinfo) --no-split -texi2txt = $(makeinfo) --plaintext --no-split -o $@ +texi2txt = $(makeinfo) --plaintext --no-split texi2xml = $(makeinfo) --xml %.pdf: %.texi $(texi2pdf) $< %.dvi: %.texi $(texi2dvi) $< +# %.dbk: %.texi $(texi2docbook) -o $@ $< %.html: %.texi @@ -22,38 +38,76 @@ texi2xml = $(makeinfo) --xml %.info: %.texi $(texi2info) $< %.txt: %.texi - $(texi2txt) $< + $(texi2txt) -o $@ $< %.xml: %.texi $(texi2xml) $< -en_tex_output = latex2e.dvi latex2e.pdf -es_tex_output = latex2e-es.dvi latex2e-es.pdf -tex_output = $(en_tex_output) $(es_tex_output) + +# targets follow. +# +default: check-en + +# to test changes, build a subset: html and info (since these formats +# exercise significantly different code paths), and pdf for tex. +check_suffixes = html info pdf # -en_makeinfo_output = latex2e.info latex2e.html latex2e.txt \ - latex2e.xml latex2e.dbk -es_makeinfo_output = latex2e-es.info latex2e-es.html latex2e-es.txt \ - latex2e-es.xml latex2e-es.dbk -makeinfo_output = $(en_makeinfo_output) $(es_makeinfo_output) +check-en: spell-en $(addprefix latex2e., $(check_suffixes)) +check-es: $(addprefix latex2e-es., $(check_suffixes)) +check-fr: $(addprefix latex2e-fr., $(check_suffixes)) +check: check-en check-es check-fr + +# Build per language. +en: $(en_mi_output) $(en_tex_output) +es: $(es_mi_output) $(es_tex_output) +fr: $(fr_mi_output) $(fr_tex_output) + +# To build everything in all languages. +all: en es fr -all: makeinfo_output tex_output -makeinfo_output: $(makeinfo_output) -tex_output: $(tex_output) +# following the GNU sequence of clean targets. +distclean clean mostlyclean: + rm -rf latex2e*.t2* -mostlyclean clean: - rm -rf latex2e.t2* +realclean maintainer-clean: distclean + rm -f $(addprefix latex2e*., pdf dvi $(mi_suffixes)) -realclean distclean: clean - rm -f $(all) +# dist. +# +# We combine languages into one zip for upload. Will change if the +# translations ever become separately uploaded. +# Don't bother including .dvi files. +# +txt_files = ChangeLog Makefile NEWS README aspell.en.pws ltx-help.el dist = latex2e-help-texinfo.zip +# dist: all - @rm -f spanish; ln -s . spanish - @mkdir latex2e-help-texinfo; cd latex2e-help-texinfo; ln -s ../* . + rm -f spanish; ln -s . spanish + mkdir latex2e-help-texinfo && cd latex2e-help-texinfo && ln -s ../* . zip -q $(dist) \ -$(addprefix latex2e-help-texinfo/, ChangeLog Makefile NEWS README ltx-help.el \ - latex2e.texi $(en_makeinfo_output) latex2e.pdf) \ +$(addprefix latex2e-help-texinfo/, $(txt_files) \ + latex2e.texi $(en_mi_output) latex2e.pdf) \ $(addprefix latex2e-help-texinfo/spanish/, \ - latex2e-es.texi $(es_makeinfo_output) latex2e-es.pdf) - @rm -rf latex2e-help-texinfo + latex2e-es.texi $(es_mi_output) latex2e-es.pdf) + rm -rf latex2e-help-texinfo spanish @ls -l $(dist); unzip -t $(dist) + +# A hacky spell check target. +# Remove \commandnames to reduce exception list, but not {args} or +# [args], since they are often words. +spell spell-en: + sed -e 's/\\[a-zA-z]*//g' latex2e.texi \ + | aspell list --mode=texinfo --add-extra-dicts=`pwd`/aspell.en.pws \ + | sort -f -u + +# Check for doubled words. +# http://www.math.utah.edu/~beebe/software/file-tools.html#dw +check-dw: + grep -v '^@item' latex2e.texi | dw + +# Convenience targets to svn revert the generated files, +# and svn diff the source files. +svr: + svn revert $(addprefix latex2e*., $(all_suffixes)) +svd: + svn diff $(txt_files) *.texi -- cgit v1.2.3