Skip to content
Snippets Groups Projects
Verified Commit d95c2f2b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Meson build system: do not build documentation by default

parent e8dc83e1
No related branches found
No related tags found
No related merge requests found
latexmk_exe = find_program('latexmk') latexmk_exe = find_program('latexmk', required : false)
# We have to set TEXINPUTS because the current directory is not the source # We have to set TEXINPUTS because the current directory is not the source
# directory when latexmk is invoked (and using the -cd option in combination # directory when latexmk is invoked (and using the -cd option in combination
...@@ -14,22 +14,29 @@ latexmk_command = [ latexmk_exe, '-pdf', '-g', '-outdir=@OUTDIR@', '-auxdir=@PRI ...@@ -14,22 +14,29 @@ latexmk_command = [ latexmk_exe, '-pdf', '-g', '-outdir=@OUTDIR@', '-auxdir=@PRI
# so add these manually # so add these manually
logos_dir = meson.current_source_dir() / 'logos' logos_dir = meson.current_source_dir() / 'logos'
custom_target('macroprocessor.pdf', macroprocessor_pdf = custom_target('macroprocessor.pdf',
output : 'macroprocessor.pdf', output : 'macroprocessor.pdf',
input : 'macroprocessor/macroprocessor.tex', input : 'macroprocessor/macroprocessor.tex',
command : latexmk_command, command : latexmk_command,
env : { 'TEXINPUTS': meson.current_source_dir() + '/macroprocessor:' + logos_dir + ':' }, env : { 'TEXINPUTS': meson.current_source_dir()
depend_files : [ 'macroprocessor/new-design.pdf', 'logos/dlogo.png' ], + '/macroprocessor:' + logos_dir + ':' },
install : true, depend_files : [ 'macroprocessor/new-design.pdf',
install_dir : 'share/doc/dynare') 'logos/dlogo.png' ],
build_by_default : false,
install : true,
install_dir : 'share/doc/dynare')
custom_target('preprocessor.pdf', preprocessor_pdf = custom_target('preprocessor.pdf',
output : 'preprocessor.pdf', output : 'preprocessor.pdf',
input : 'preprocessor/preprocessor.tex', input : 'preprocessor/preprocessor.tex',
command : latexmk_command, command : latexmk_command,
env : { 'TEXINPUTS': meson.current_source_dir() + '/preprocessor:' + logos_dir + ':' }, env : { 'TEXINPUTS': meson.current_source_dir() + '/preprocessor:'
depend_files : [ 'preprocessor/expr.png', 'preprocessor/expr-sharing.png', + logos_dir + ':' },
'preprocessor/json-preprocessor.png', 'preprocessor/matrices.png', depend_files : [ 'preprocessor/expr.png',
'preprocessor/overview.png', 'logos/dlogo.png' ], 'preprocessor/expr-sharing.png',
install : true, 'preprocessor/json-preprocessor.png',
install_dir : 'share/doc/dynare') 'preprocessor/matrices.png',
'preprocessor/overview.png', 'logos/dlogo.png' ],
build_by_default : false,
install : true,
install_dir : 'share/doc/dynare')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment