meson: fix website target
A number of pages don't actually exist as html inside the source tree, and need to be generated even though they are manpages. This caused the website.tar.gz target to only work inside a dirty tree initially created by autotools. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
10bcf66db8
commit
a5090217f9
1 changed files with 13 additions and 4 deletions
|
@ -14,6 +14,13 @@ manpages = [
|
||||||
{ 'name': 'BUILDINFO.5' },
|
{ 'name': 'BUILDINFO.5' },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
sitepages = [
|
||||||
|
{ 'name': 'submitting-patches' },
|
||||||
|
{ 'name': 'translation-help' },
|
||||||
|
{ 'name': 'HACKING', 'source': '../HACKING' },
|
||||||
|
{ 'name': 'index' },
|
||||||
|
]
|
||||||
|
|
||||||
asciidoc_conf = join_paths(meson.current_source_dir(), 'asciidoc.conf')
|
asciidoc_conf = join_paths(meson.current_source_dir(), 'asciidoc.conf')
|
||||||
|
|
||||||
asciidoc_opts = [
|
asciidoc_opts = [
|
||||||
|
@ -58,6 +65,12 @@ foreach page : manpages
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : mandirn,
|
install_dir : mandirn,
|
||||||
)
|
)
|
||||||
|
endforeach
|
||||||
|
|
||||||
|
foreach page: manpages + sitepages
|
||||||
|
manpage = page['name']
|
||||||
|
htmlpage = '@0@.html'.format(manpage)
|
||||||
|
input = page.get('source', '@0@.asciidoc'.format(manpage))
|
||||||
|
|
||||||
html = custom_target(
|
html = custom_target(
|
||||||
htmlpage,
|
htmlpage,
|
||||||
|
@ -96,10 +109,6 @@ custom_target(
|
||||||
'-C', meson.current_build_dir(),
|
'-C', meson.current_build_dir(),
|
||||||
] + html_files + [
|
] + html_files + [
|
||||||
'-C', meson.current_source_dir(),
|
'-C', meson.current_source_dir(),
|
||||||
'submitting-patches.html',
|
|
||||||
'translation-help.html',
|
|
||||||
'HACKING.html',
|
|
||||||
'index.html',
|
|
||||||
'asciidoc-override.css',
|
'asciidoc-override.css',
|
||||||
'-C', '/etc/asciidoc/stylesheets/',
|
'-C', '/etc/asciidoc/stylesheets/',
|
||||||
'asciidoc.css',
|
'asciidoc.css',
|
||||||
|
|
Loading…
Add table
Reference in a new issue