From a95f7d5239d4762666ae520a04926756dfd19c85 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 29 Apr 2010 01:21:10 -0400 Subject: [PATCH] Rework Alias('asymptote-figures'). Previous implementation didn't build the asyfig targets. --- tex/site_cons/site_tools/asymptote.py | 6 +++--- tex/src/figures/SConscript | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tex/site_cons/site_tools/asymptote.py b/tex/site_cons/site_tools/asymptote.py index 6d8aeb5..707d91d 100644 --- a/tex/site_cons/site_tools/asymptote.py +++ b/tex/site_cons/site_tools/asymptote.py @@ -10,8 +10,8 @@ import doctest double_quoted_string_re = re.compile(r'"([^"]*)"', re.M) # SCons' LaTeX scanner doesn't understand \asyfig{}, so keep track of -# all Asymptote graphics under a single phony target. -asyfigs = SCons.Script.Alias('asymptote-figures') +# all Asymptote graphics for phony target creation. +asyfigs = [] def asymptote_scan(node, env, path, arg=None): """ @@ -60,7 +60,7 @@ def asymptote_emitter(target, source, env): for ext in ['idx', 'log', 'nlo', 'pdf']]) source.append(SCons.Script.Alias('asytools')) # side effect, keep track of all asymptote graphics. - env.Depends(asyfigs, target) + asyfigs.append(target[0]) return target, source AsymptoteAction = None diff --git a/tex/src/figures/SConscript b/tex/src/figures/SConscript index 0eac076..a1b38df 100644 --- a/tex/src/figures/SConscript +++ b/tex/src/figures/SConscript @@ -1,9 +1,11 @@ from site_cons.site_init import include_child_SConscripts +from site_cons.site_tools.asymptote import asyfigs # Get the passed in environment. Import('env') env = include_child_SConscripts(env, SConscript) +env.Alias('asymptote-figures', asyfigs) # Pass back the modified environment. Return('env') -- 2.26.2