[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Automake-NG] [PATCH 04/26] [ng] texi: more target-specific variable
From: |
Akim Demaille |
Subject: |
Re: [Automake-NG] [PATCH 04/26] [ng] texi: more target-specific variables use in '.info' build rules |
Date: |
Sun, 17 Jun 2012 08:44:36 +0200 |
Le 16 juin 2012 à 23:29, Stefano Lattarini a écrit :
> - if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS% -o
> $@ $<; \
> + if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
> + $(am__makeinfoflags) -o $@ $<; \
Looks good. Maybe
am__run_MAKEINFO = $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS)
$(am__makeinfoflags)
or something like this, would make it even clearer.
> then \
> rc=0; \
> $(if $(am__info_insrc),$(am__cd) $(srcdir);) \
> @@ -53,8 +54,8 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX%
> %AM_V_TEXI2DVI%$(am__ensure_target_dir_exists) && \
> TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
> ## Must set MAKEINFO like this so that version.texi will be found even
> -## if it is in srcdir (-I $(srcdir) is set in %MAKEINFOFLAGS%).
> - MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS)
> %MAKEINFOFLAGS%' \
> +## if it is in srcdir (-I $(srcdir) is set in '$(am__makeinfoflags)').
> + MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS)
> $(am__makeinfoflags)' \
> ## texi2dvi doesn't silence everything with -q, redirect to /dev/null instead.
> ## We still want -q (%TEXIQUIET%) because it turns on batch mode.
> ## Use '--clean' to avoid leaving auxiliary files behind cluttering the build
> @@ -66,8 +67,8 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX%
> %AM_V_TEXI2PDF%$(am__ensure_target_dir_exists) && \
> TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \
> ## Must set MAKEINFO like this so that version.texi will be found even
> -## if it is in srcdir (-I $(srcdir) is set in %MAKEINFOFLAGS%).
> - MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS)
> %MAKEINFOFLAGS%' \
> +## if it is in srcdir (-I $(srcdir) is set in '$(am__makeinfoflags)').
> + MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS)
> $(am__makeinfoflags)' \
> ## texi2pdf doesn't silence everything with -q, redirect to /dev/null instead.
> ## We still want -q (%TEXIQUIET%) because it turns on batch mode.
> ## Use '--clean' to avoid leaving auxiliary files behind cluttering the build
> @@ -86,7 +87,7 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX%
> && { test ! -d $(@:.html=.htp) || rm -rf $(@:.html=.htp); } \
> || exit 1; \
> if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
> - %MAKEINFOFLAGS% -o $(@:.html=.htp) $<; \
> + $(am__makeinfoflags) -o $(@:.html=.htp) $<; \
> then \
> rm -rf $@; \
> ## Work around a bug in Texinfo 4.1 (-o foo.html outputs files in foo/
> @@ -105,3 +106,9 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX%
> %DEST_PREFIX%.dvi: %SOURCE_REAL% %DEPS%
> %DEST_PREFIX%.pdf: %SOURCE_REAL% %DEPS%
> %DEST_PREFIX%.html: %SOURCE_REAL% %DEPS%
> +
> +%DEST_INFO_PREFIX%%DEST_SUFFIX% \
> +%DEST_PREFIX%.dvi \
> +%DEST_PREFIX%.pdf \
> +%DEST_PREFIX%.html \
> +: am__makeinfoflags = %MAKEINFOFLAGS%
> --
> 1.7.9.5
>
>
- Re: [Automake-NG] [PATCH 02/26] [ng] texi: tweak rules for HTML generation to spawn only one shell, (continued)
[Automake-NG] [PATCH 01/26] [ng] texi: simplify by always assuming generic rules, Stefano Lattarini, 2012/06/16
[Automake-NG] [PATCH 03/26] [ng] texi: reimplement '.info' build using target-specific variables, Stefano Lattarini, 2012/06/16
[Automake-NG] [PATCH 04/26] [ng] texi: more target-specific variables use in '.info' build rules, Stefano Lattarini, 2012/06/16
- Re: [Automake-NG] [PATCH 04/26] [ng] texi: more target-specific variables use in '.info' build rules,
Akim Demaille <=
[Automake-NG] [PATCH 05/26] [ng] texi: drop support for suffix-less info files, Stefano Lattarini, 2012/06/16
[Automake-NG] [PATCH 07/26] [ng] texi: read 'texbuild' rules more verbatim, Stefano Lattarini, 2012/06/16