aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-03 22:45:51 -0400
committerDavid Robillard <d@drobilla.net>2016-10-03 22:45:51 -0400
commit1c29fa440c3d68608d7d3c99b2c7fb3d83f1f36f (patch)
treeac69459216a0a0e3cf830196b6a5b0fcd2cfd2b8
parent49b0b2d4f7d4687cd6bb5e6b52dfbb195b198710 (diff)
downloadlv2-1c29fa440c3d68608d7d3c99b2c7fb3d83f1f36f.tar.xz
Include headers in literate documentation
-rwxr-xr-xplugins/literasc.py2
-rw-r--r--plugins/wscript1
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/literasc.py b/plugins/literasc.py
index 0491227..f0b8cc4 100755
--- a/plugins/literasc.py
+++ b/plugins/literasc.py
@@ -105,7 +105,7 @@ def gen(out, filenames):
sys.stderr.write('Failed to open file %s\n' % filename)
continue
- if filename.endswith('.c'):
+ if filename.endswith('.c') or filename.endswith('.h'):
out.write(format_c_source(filename, file))
elif filename.endswith('.ttl') or filename.endswith('.ttl.in'):
out.write(format_ttl_source(filename, file))
diff --git a/plugins/wscript b/plugins/wscript
index 0cfd387..f5f6571 100644
--- a/plugins/wscript
+++ b/plugins/wscript
@@ -29,6 +29,7 @@ def build(bld):
files += bld.path.ant_glob('%s/manifest.ttl*' % i)
files += bld.path.ant_glob('%s/*.ttl' % i)
files += bld.path.ant_glob('%s/*.c' % i)
+ files += bld.path.ant_glob('%s/*.h' % i)
# Compile book sources into book.txt asciidoc source
bld(rule = bld_book_src,