]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/depend.py
Spanish updates from Ignacio
[lyx.git] / lib / doc / depend.py
index 74885d894c3a3bd4c8e6a3b57dd3b7d0476ce1cf..af4d1404c3632df9c71b5d5b49f2cebedc2287ab 100644 (file)
@@ -28,7 +28,7 @@ import os
 import re
 from glob import glob
 
-possible_documents = ("Intro", "FAQ", "Tutorial", "UserGuide", "Extended", "Customization")
+possible_documents = ("Intro", "FAQ", "Tutorial", "UserGuide", "EmbeddedObjects", "Extended", "Customization")
 lang_pattern = re.compile('^([a-z]{2})_')
 
 def documents(srcdir, prefix):
@@ -53,7 +53,7 @@ def main(argv):
     # What are the languages available? And its documents?
     languages = {}
     srcdir = os.path.dirname(argv[0])
-    for file in glob(srcdir + '/*'):
+    for file in glob(srcdir + '/*.lyx'):
         file = os.path.basename(file)
         lang = lang_pattern.match(file)
         if lang:
@@ -68,7 +68,7 @@ def main(argv):
 
     # The default language is english and doesn't need any prefix
     print 'TOC.lyx: $(srcdir)/' + '.lyx $(srcdir)/'.join(possible_documents) + '.lyx'
-    print '\tpython $(srcdir)/doc_toc.py'
+    print '\tPYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py'
     print
     tocs = ['TOC.lyx']
 
@@ -82,7 +82,7 @@ def main(argv):
         languages[lang].sort()
 
         print toc_name + ': $(srcdir)/' + ' $(srcdir)/'.join(languages[lang])
-        print '\tpython $(srcdir)/doc_toc.py %s' % lang
+        print '\tPYTHONPATH=$(top_builddir)/lib/lyx2lyx python -tt $(srcdir)/doc_toc.py %s' % lang
         print
 
     # Write meta-rule to call all the other rules