From 1ffcb516954add31a225d38675adad1df8fa5d21 Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Sun, 3 Mar 2024 12:55:11 +0100 Subject: Add meson as alternative build system Add a note to the readme file to clarify that the default build system is still automake. Signed-off-by: Tim Wiederhake --- man/meson.build | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 man/meson.build (limited to 'man') diff --git a/man/meson.build b/man/meson.build new file mode 100644 index 0000000..40287d5 --- /dev/null +++ b/man/meson.build @@ -0,0 +1,24 @@ +custom_target( + 'twm.1', + build_by_default: true, + capture: true, + input: files('twm.man'), + output: 'twm.1', + install: true, + install_dir: get_option('mandir'), + command: [ + find_program('sed'), + '@INPUT@', + '-e', 's#__appmansuffix__#1#g', + '-e', 's#__miscmansuffix__#7#g', + '-e', 's#__datadir__#@0@#g'.format( + get_option('prefix') / get_option('datadir') + ), + '-e', 's#__projectroot__#@0@#g'.format( + meson.project_source_root() + ), + '-e', 's#__xorgversion__#"twm @0@" "X Version 11"#g'.format( + meson.project_version() + ), + ], +) -- cgit v1.2.3