diff --git a/ULWGL/meson.build b/ULWGL/meson.build index 9336d4518..6bbf8f9dc 100644 --- a/ULWGL/meson.build +++ b/ULWGL/meson.build @@ -6,7 +6,7 @@ ulwgl_run = custom_target('ulwgl_run', output : 'ulwgl-run', command : [ sed, - '-e', 's|##INSTALL_PATH##|' + get_option('prefix') / get_option('datadir') / meson.project_name() + '|g', + '-e', 's|@INSTALL_PATH@|' + get_option('prefix') / get_option('datadir') / meson.project_name() + '|g', '@INPUT@' ], capture : true, @@ -43,8 +43,8 @@ ulwgl_version = custom_target( output : 'ULWGL_VERSION.json', command : [ sed, - '-e', 's|##ULWGL_VERSION##|' + ulwgl_desc + '|g', - '-e', 's|##REAPER_VERSION##|' + reaper_desc + '|g', + '-e', 's|@ULWGL_VERSION@|' + ulwgl_desc + '|g', + '-e', 's|@REAPER_VERSION@|' + reaper_desc + '|g', '@INPUT@' ], capture : true, diff --git a/docs/meson.build b/docs/meson.build new file mode 100644 index 000000000..fb58b9d02 --- /dev/null +++ b/docs/meson.build @@ -0,0 +1,21 @@ +scdoc = find_program('scdoc') + +man1 = custom_target('man1', + input : 'ulwgl.1.scd', + output : 'ulwgl.1', + command : [ scdoc ], + feed : true, + capture : true, + install : true, + install_dir : get_option('mandir'), +) + +man5 = custom_target('man5', + input : 'ulwgl.5.scd', + output : 'ulwgl.5', + command : [ scdoc ], + feed : true, + capture : true, + install : true, + install_dir : get_option('mandir'), +) \ No newline at end of file diff --git a/meson.build b/meson.build index 4d5c1d851..fcf5a9948 100644 --- a/meson.build +++ b/meson.build @@ -12,3 +12,4 @@ reaper = subproject('reaper', ) subdir('ULWGL') +subdir('docs')