Skip to content

Commit

Permalink
packaging: add docs build option
Browse files Browse the repository at this point in the history
  • Loading branch information
tinywrkb authored and pH5 committed Sep 19, 2019
1 parent f8788f8 commit d3944d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ coda_fwinfo_sources = [
'src/reorder.h'
]
executable('coda-fwinfo', coda_fwinfo_sources, install : true)

codabits_docs = [
'README.rst',
'doc/bit-isa.rst',
'doc/bit.rst'
]
if get_option('docs')
install_data(codabits_docs, install_dir: 'share/doc/coda-bits')
endif
4 changes: 4 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
option('docs',
type: 'boolean',
value: false,
description: 'Install documentation')

0 comments on commit d3944d8

Please sign in to comment.