summaryrefslogtreecommitdiff
path: root/buildsystems/autotools/meson.build
blob: 17bbcbd00bf0773d9fe90273b89dc19d8c3c0567 (plain)
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
43
44
45
46
47
48
49
50
51
configure_file(
  input: 'gtkdocize.in',
  output: 'gtkdocize',
  configuration: binary_in,
  install: true,
  install_dir: bindir,
)

foreach mode : ['', 'no-xslt']
  if mode == ''
    nested = ''
    flat = '.flat'
  else
    nested = '.' + mode
    flat = nested + '-flat'
  endif

  custom_target(
    'gtk-doc' + flat + '.make',
    input: 'gtk-doc' + nested + '.make',
    output: 'gtk-doc' + flat + '.make',
    install: true,
    install_dir: pkgdatadir,
    capture: true,
    command: [
      'sed',
      '-e',
      's/EXTRA_DIST =/EXTRA_DIST +=/',
      '@INPUT@',
    ]
  )

  install_data(
    ['gtk-doc' + nested + '.make'],
    install_dir: pkgdatadir,
  )
endforeach

custom_target(
  'gtk-doc.m4',
  input: 'gtk-doc.m4',
  output: 'gtk-doc.m4',
  install: true,
  install_dir: autoconfdatadir,
  command: [
    'cp',
    '-f',
    '@INPUT@',
    '@OUTPUT@',
  ],
)