From: W. Trevor King Date: Thu, 29 Apr 2010 05:21:10 +0000 (-0400) Subject: Rework Alias('asymptote-figures'). Previous implementation didn't build the asyfig... X-Git-Tag: v1.0~396 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a95f7d5239d4762666ae520a04926756dfd19c85;p=thesis.git Rework Alias('asymptote-figures'). Previous implementation didn't build the asyfig targets. --- 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')