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):
"""
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
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')