| | 66 | elif len(sys.argv) == 2 and sys.argv[1] == 'doc': |
| | 67 | if not os.path.isdir('doc/html'): |
| | 68 | os.makedirs('doc/html') |
| | 69 | for m in submodules: |
| | 70 | if os.path.isfile('%s/doc/Makefile' % m): |
| | 71 | print '[setup] Entering kaa submodule', m |
| | 72 | os.chdir(m) |
| | 73 | try: |
| | 74 | # execfile('setup.py') |
| | 75 | pass |
| | 76 | except SystemExit: |
| | 77 | print 'failed to create doc for', m |
| | 78 | os.chdir('..') |
| | 79 | if not os.path.exists('doc/html/%s' % m): |
| | 80 | os.symlink('../../%s/doc/html' % m, 'doc/html/%s' % m) |
| | 81 | print '[setup] Leaving kaa submodule', m |
| | 82 | os.chdir('doc') |
| | 83 | os.system('make html') |