summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-07-25 22:28:38 +0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-01-17 20:09:35 -0200
commit32edd6789e9d60b1e371660bdbb3c4a0671bd714 (patch)
treedc6db5385f0dded9a7c3720eaabef14c17e6ec15 /man
parentd7012d033782869be146e876c7f10d451a906058 (diff)
downloadgnome-control-center-32edd6789e9d60b1e371660bdbb3c4a0671bd714.tar.gz
build: Port to meson build system
Meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. https://bugzilla.gnome.org/show_bug.cgi?id=785414
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am4
-rw-r--r--man/meson.build26
2 files changed, 29 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 7f651fb5b..440e4d3c8 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -14,7 +14,9 @@ man_MANS = \
xml_files = $(man_MANS:.1=.xml)
-EXTRA_DIST = $(xml_files)
+EXTRA_DIST = \
+ $(xml_files) \
+ meson.build
DISTCLEANFILES = $(man_MANS)
diff --git a/man/meson.build b/man/meson.build
new file mode 100644
index 000000000..cab3fa945
--- /dev/null
+++ b/man/meson.build
@@ -0,0 +1,26 @@
+xsltproc = find_program('xsltproc', required: false)
+assert(xsltproc.found(), 'xsltproc is required to build documentation')
+
+xsltproc_cmd = [
+ xsltproc,
+ '--output', '@OUTPUT@',
+ '--nonet',
+ '--stringparam', 'man.output.quietly', '1',
+ '--stringparam', 'funcsynopsis.style', 'ansi',
+ '--stringparam', 'man.th.extra1.suppress', '1',
+ '--stringparam', 'man.authors.section.enabled', '0',
+ '--stringparam', 'man.copyright.section.enabled', '0',
+ 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl',
+ '@INPUT@'
+]
+
+output = meson.project_name() + '.1'
+
+custom_target(
+ output,
+ input: meson.project_name() + '.xml',
+ output: output,
+ command: xsltproc_cmd,
+ install: true,
+ install_dir: join_paths(control_center_mandir, 'man1')
+)