summary refs log tree commit diff
path: root/.config/yamlfs/meson.yml
diff options
context:
space:
mode:
Diffstat (limited to '.config/yamlfs/meson.yml')
-rw-r--r--.config/yamlfs/meson.yml63
1 files changed, 47 insertions, 16 deletions
diff --git a/.config/yamlfs/meson.yml b/.config/yamlfs/meson.yml
index 92fbcf8..a15c9e1 100644
--- a/.config/yamlfs/meson.yml
+++ b/.config/yamlfs/meson.yml
@@ -9,11 +9,7 @@ meson.build: |-
         'warning_level=2',
         'werror=true',
       ],
-      {% if .docker %}
-      meson_version: '>= 0.37',
-      {% else %}
-      meson_version: '>= 0.46',
-      {% end %}
+      meson_version: '>= 0.47',
   )
 
   cc = meson.get_compiler('c')
@@ -59,17 +55,8 @@ meson.build: |-
   endif
   add_project_arguments('-DVERSION=@0@'.format(version), language: 'c')
 
-  executable(
-    meson.project_name(),
-    files(
-      'src/main.c',
-    ),
-    include_directories: include_directories('include'),
-    dependencies: [],
-    install: true,
-  )
+  {%- if .man %}
 
-  {%- if .doc %}
   scdoc = dependency(
     'scdoc',
     version: '>=1.9.2',
@@ -102,6 +89,50 @@ meson.build: |-
   endif
   {%- end %}
 
+  executable(
+    meson.project_name(),
+    files(
+      'src/main.c',
+    ),
+    include_directories: include_directories('include'),
+    dependencies: [],
+    install: true,
+  )
+
+{% if .man %}
+meson_options.txt: |
+  option('man-pages', type: 'feature', value: 'auto', description: 'Generate man pages using scdoc')
+
+{% .name %}.1.scd: |
+  {% .name %}(1)
+
+  # NAME
+
+  {% .name %} - TODO
+
+  # SYNOPSIS
+
+  *{% .name %}* [options...]
+
+  # DESCRIPTION
+
+  TODO
+
+  # OPTIONS
+
+  *-h, -help*
+    Show help message and quit.
+
+  # SEE ALSO
+
+    *{% .name %}*(5)
+
+  # AUTHORS
+
+  Maintained by TODO author <mail>.
+  For more information, see {% .pkg %}.
+{% end %}
+
 src:
   main.c: |-
     #define _POSIX_C_SOURCE 200809L
@@ -168,5 +199,5 @@ README.md: |-
 
 {% if .docker %}
 Dockerfile: |-
-
+  TODO
 {% end %}