Commit fd70609a authored by Canek Peláez's avatar Canek Peláez
Browse files

Build: Change generation of man and HTML pages.

parent e7492586
Loading
Loading
Loading
Loading
+55 −50
Original line number Diff line number Diff line
if xsltproc.found() and not get_option('disable_doc')
want_man = get_option('man') and xsltproc.found()
want_html = get_option('html') and xsltproc.found()

customman = files('custom-man.xsl')
customhtml = files('custom-html.xsl')

@@ -45,11 +47,14 @@ if xsltproc.found() and not get_option('disable_doc')

endforeach

if want_man
  man = custom_target('man',
                      output: 'man',
                      depends: man_pages,
                      command: ['echo'])
endif

if want_html
  html = custom_target('html',
                       output: 'html',
                       depends: html_pages,
+6 −2
Original line number Diff line number Diff line
option('disable_doc', type: 'boolean',
option('man', type: 'boolean',
       value: true,
       description: 'Enable generation of man pages')

option('html', type: 'boolean',
       value: false,
       description: 'Disable generation of man pages')
       description: 'Enable generation of HTML man pages')