summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-05-07 12:38:21 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-10-02 12:07:05 +0300
commit111835e860034fe10d7351b3056aff851057fe2b (patch)
tree96a652ccf243149fcbb494d15f5ce2556a3e31ac /src
parentdeeca54f644aba1d73b785b6eb36cd1d23e404cc (diff)
downloadapk-tools-111835e860034fe10d7351b3056aff851057fe2b.tar.gz
apk-tools-111835e860034fe10d7351b3056aff851057fe2b.tar.bz2
apk-tools-111835e860034fe10d7351b3056aff851057fe2b.tar.xz
apk-tools-111835e860034fe10d7351b3056aff851057fe2b.zip
build: build help.h with meson
Diffstat (limited to 'src')
-rw-r--r--src/meson.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build
index 070a55b..972e4b4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -51,8 +51,21 @@ apk_src = [
'app_stats.c',
'app_verify.c',
'app_version.c',
+ 'help.c',
]
+genhelp_script = find_program('genhelp.lua')
+
+generated_help = custom_target(
+ 'help.h',
+ capture: true,
+ output: 'help.h',
+ input: man_files,
+ command: [genhelp_script, '@INPUT@'],
+)
+
+apk_src += [ generated_help ]
+
apk_cargs = [
'-DAPK_VERSION="' + meson.project_version() + '"',
'-D_ATFILE_SOURCE',