[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH 04/26] [ng] texi: more target-specific variables us
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH 04/26] [ng] texi: more target-specific variables use in '.info' build rules |
Date: |
Sat, 16 Jun 2012 23:29:51 +0200 |
* lib/am/texibuild.am: Rewrite '.info' targets' recipes and dependencies
to use the target-specific variable 'am__makeinfoflags', set from the
'%MAKEINFOFLAGS%' transform.
Signed-off-by: Stefano Lattarini <address@hidden>
---
lib/am/texibuild.am | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/lib/am/texibuild.am b/lib/am/texibuild.am
index 11cb90a..349ef7a 100644
--- a/lib/am/texibuild.am
+++ b/lib/am/texibuild.am
@@ -35,7 +35,8 @@
done; \
else :; fi && \
$(if $(am__info_insrc),cd "$$am__cwd" &&) \
- if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS% -o
$@ $<; \
+ if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
+ $(am__makeinfoflags) -o $@ $<; \
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 <=
[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