Skip to content

Commit

Permalink
meson: doc -- move generate script to top-level
Browse files Browse the repository at this point in the history
Centralise custom meson-scripts to the toplevel meson-scripts/
directory.
  • Loading branch information
ThomasAdam authored and Kangie committed Oct 14, 2024
1 parent daf2501 commit 7c2d953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ main_file = 'fvwm3_manpage_source.adoc'
ad_build_targets = []
sections = ['commands', 'menus', 'styles']

generate_ad_cmd = '@0@/meson-scripts/generate_ad_file.sh'.format(meson.project_source_root())

foreach sec : sections
outfile = f'fvwm3_@[email protected]'
# We could use a generator here, but since multiple targets include
Expand All @@ -41,7 +43,7 @@ foreach sec : sections
ad_build_targets += custom_target(
output: outfile,
input: main_file,
command: ['generate_ad_file.sh', sec, '@INPUT@'],
command: [generate_ad_cmd, sec, '@INPUT@'],
capture: true,
install: false,
)
Expand Down Expand Up @@ -215,4 +217,4 @@ if get_option('mandoc')
depends: ad_build_targets,
)
endforeach
endif
endif
File renamed without changes.

0 comments on commit 7c2d953

Please sign in to comment.