File: meson.build

package info (click to toggle)
pithos 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 780 kB
  • sloc: python: 5,256; xml: 107; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 846 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
sphinx_build = find_program(['sphinx-build-3', 'sphinx-build'], required: false)
if sphinx_build.found()
  custom_target('Pithos docs',
    output: ['html'],
    command: [
      sphinx_build, meson.current_source_dir(), '@OUTPUT@'
    ],
    # https://github.com/mesonbuild/meson/issues/1942
    # build_always: true
  )
endif

help2man = find_program('help2man', required: false)
if help2man.found()
  # Target only for maintainers
  custom_target('Pithos man page',
    depend_files: files('../pithos/application.py'),
    output: 'pithos.1', # TODO: Output into source dir..
    command: [
      # https://github.com/mesonbuild/meson/issues/266
      'env', 'MESON_SOURCE_ROOT=' + meson.source_root(), 'MESON_BUILD_ROOT=' + meson.build_root(),
      help2man, '--no-info', '--output=@OUTPUT@', pithos
    ]
  )
endif

install_man('pithos.1')