Scons: fix env_toc's dependency on lyx2lyx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24735 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-05-12 16:36:12 +00:00
parent ffe427cfdd
commit 92c79cacde

View File

@ -2006,15 +2006,12 @@ if 'install' in BUILD_TARGETS or 'installer' in BUILD_TARGETS:
if os.path.isdir(os.path.join(env.Dir('$TOP_SRCDIR/lib/doc').abspath, lang)):
toc = env.installTOC(os.path.join(share_dest_dir, 'doc', lang, 'TOC.lyx'),
languages[lang])
tocs.append(toc)
# doc_toc.build_toc needs a installed version of lyx2lyx to execute
env.Depends(toc, share_dest_dir + '/lyx2lyx/lyx2lyx_version.py')
else:
# this is for English
toc = env.installTOC(os.path.join(share_dest_dir, 'doc', 'TOC.lyx'),
languages[lang])
tocs.append(toc)
env.Depends(toc, share_dest_dir + '/lyx2lyx/lyx2lyx_version.py')
tocs.append(toc)
env.Depends(toc, dirs)
Alias('install', tocs)
if platform_name == 'cygwin':