summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/meson.build25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/meson.build b/src/meson.build
index 972e4b4..07beac7 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -54,15 +54,24 @@ apk_src = [
'help.c',
]
-genhelp_script = find_program('genhelp.lua')
+if lua_bin.found()
+ genhelp_script = find_program('genhelp.lua')
-generated_help = custom_target(
- 'help.h',
- capture: true,
- output: 'help.h',
- input: man_files,
- command: [genhelp_script, '@INPUT@'],
-)
+ generated_help = custom_target(
+ 'help.h',
+ capture: true,
+ output: 'help.h',
+ input: man_files,
+ command: [genhelp_script, '@INPUT@'],
+ )
+else
+ generated_help = custom_target(
+ 'help.h',
+ capture: true,
+ output: 'help.h',
+ command: ['echo', '#define NO_HELP'],
+ )
+endif
apk_src += [ generated_help ]