Skip to content

Commit

Permalink
Add man pages to meson
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Mar 8, 2024
1 parent 41e29e9 commit 1456753
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ULWGL/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
21 changes: 21 additions & 0 deletions docs/meson.build
Original file line number Diff line number Diff line change
@@ -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'),
)
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ reaper = subproject('reaper',
)

subdir('ULWGL')
subdir('docs')

0 comments on commit 1456753

Please sign in to comment.