File: meson.build

package info (click to toggle)
wmenu 0.1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 176 kB
  • sloc: ansic: 1,596; xml: 240; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 485 bytes parent folder | download
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
scdoc_dep = dependency('scdoc', version: '>=1.9.2', native: true, required: false)

if scdoc_dep.found()
	scdoc = find_program(
		scdoc_dep.get_pkgconfig_variable('scdoc'),
		native: true,
	)
	mandir = get_option('mandir')

	docs = [
		'wmenu.1',
	]

	foreach path : docs
		custom_target(
			path,
			output: path,
			input: '@0@.scd'.format(path),
			capture: true,
			feed: true,
			command: [scdoc],
			install: true,
			install_dir: '@0@/man1'.format(mandir)
		)
	endforeach
endif