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-09 16:09:19 +0300
commit718e07f78a6f5a5a1c5c1a961308bd85afb4db30 (patch)
tree52ee310d78da61233b78bd4457d2394ffcd9145b /src
parentfe1de720d02ae91856ec966801f69b1f1a8e3168 (diff)
downloadapk-tools-718e07f78a6f5a5a1c5c1a961308bd85afb4db30.tar.gz
apk-tools-718e07f78a6f5a5a1c5c1a961308bd85afb4db30.tar.bz2
apk-tools-718e07f78a6f5a5a1c5c1a961308bd85afb4db30.tar.xz
apk-tools-718e07f78a6f5a5a1c5c1a961308bd85afb4db30.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',