File: meson.build

package info (click to toggle)
dynare 6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 67,632 kB
  • sloc: cpp: 79,090; ansic: 28,916; objc: 12,430; yacc: 4,528; pascal: 1,993; lex: 1,441; sh: 1,121; python: 634; makefile: 626; lisp: 163; xml: 18
file content (42 lines) | stat: -rw-r--r-- 2,556 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
latexmk_exe = find_program('latexmk', required : false, disabler : true)

# 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
# with -outdir/-auxdir does not work in all cases because @OUTDIR@ and
# @PRIVATE_DIR@ can be relative paths)

# Without the -g flag, latexmk remembers a previous build failure and will refuse
# to recompile even if the error has been fixed in the TeX source

latexmk_command = [ latexmk_exe, '-pdf', '-g', '-outdir=@OUTDIR@', '-auxdir=@PRIVATE_DIR@', '@INPUT@']

# The \graphicspath{} command does not compute directories relative to TEXINPUTS,
# so add these manually
logos_dir = meson.current_source_dir() / 'logos'

macroprocessor_pdf = custom_target('macroprocessor.pdf',
                                   output : 'macroprocessor.pdf',
                                   input : 'macroprocessor/macroprocessor.tex',
                                   command : latexmk_command,
                                   env : { 'TEXINPUTS': meson.current_source_dir()
                                                        + '/macroprocessor:' + logos_dir + ':' },
                                   depend_files : [ 'macroprocessor/new-design.pdf',
                                                    'logos/dlogo.png' ],
                                   build_by_default : false,
                                   install : true,
                                   install_dir : 'share/doc/dynare')

preprocessor_pdf = custom_target('preprocessor.pdf',
                                 output : 'preprocessor.pdf',
                                 input : 'preprocessor/preprocessor.tex',
                                 command : latexmk_command,
                                 env : { 'TEXINPUTS': meson.current_source_dir() + '/preprocessor:'
                                                      + logos_dir + ':' },
                                 depend_files : [ 'preprocessor/expr.png',
                                                  'preprocessor/expr-sharing.png',
                                                  'preprocessor/json-preprocessor.png',
                                                  'preprocessor/matrices.png',
                                                  'preprocessor/overview.png', 'logos/dlogo.png' ],
                                 build_by_default : false,
                                 install : true,
                                 install_dir : 'share/doc/dynare')