summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-05-14 23:11:41 (GMT)
committerEvan Martin <martine@danga.com>2011-05-14 23:11:41 (GMT)
commit17a0335519638e3f821d38172d104bfad62eb01c (patch)
tree154ce2a1d75c9124394651068b12612d5a2342a2 /configure.py
parent2ec1b4262151a70cb694395dd38d99a937ba13e3 (diff)
downloadNinja-17a0335519638e3f821d38172d104bfad62eb01c.zip
Ninja-17a0335519638e3f821d38172d104bfad62eb01c.tar.gz
Ninja-17a0335519638e3f821d38172d104bfad62eb01c.tar.bz2
move various doc files out of top-level directory
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.py b/configure.py
index 9353c76..e42a76a 100755
--- a/configure.py
+++ b/configure.py
@@ -56,6 +56,8 @@ def src(filename):
return os.path.join('src', filename)
def built(filename):
return os.path.join('$builddir', filename)
+def doc(filename):
+ return os.path.join('doc', filename)
def cxx(name, **kwargs):
return n.build(built(name + '.o'), 'cxx', src(name + '.cc'), **kwargs)
@@ -160,11 +162,11 @@ n.newline()
n.comment('Generate the manual using asciidoc.')
n.rule('asciidoc',
- command='asciidoc -a toc $in',
+ command='asciidoc -a toc $in -o $out',
description='ASCIIDOC $in')
-n.build('manual.html', 'asciidoc', 'manual.asciidoc')
+manual = n.build(doc('manual.html'), 'asciidoc', doc('manual.asciidoc'))
n.build('manual', 'phony',
- order_only='manual.html')
+ order_only=manual)
n.newline()
n.comment('Generate Doxygen.')
@@ -172,14 +174,14 @@ n.rule('doxygen',
command='doxygen $in',
description='DOXYGEN $in')
n.variable('doxygen_mainpage_generator',
- './gen_doxygen_mainpage.sh')
+ src('gen_doxygen_mainpage.sh'))
n.rule('doxygen_mainpage',
command='$doxygen_mainpage_generator $in > $out',
description='DOXYGEN_MAINPAGE $out')
mainpage = n.build(built('doxygen_mainpage'), 'doxygen_mainpage',
['README', 'HACKING', 'COPYING'],
implicit=['$doxygen_mainpage_generator'])
-n.build('doxygen', 'doxygen', 'doxygen.config',
+n.build('doxygen', 'doxygen', doc('doxygen.config'),
implicit=mainpage)
n.newline()