diff options
Diffstat (limited to 'doc/manual/meson.build')
-rw-r--r-- | doc/manual/meson.build | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/doc/manual/meson.build b/doc/manual/meson.build index 02b707ff3..72294311e 100644 --- a/doc/manual/meson.build +++ b/doc/manual/meson.build @@ -132,19 +132,10 @@ nix3_cli_json = custom_target( capture : true, output : 'nix.json', ) -nix3_cli_files = custom_target( - command : nix_eval_for_docs + [ - '--write-to', '@OUTPUT@', - '--expr', - 'import @INPUT1@ true (builtins.readFile @INPUT0@)', - ], - input : [ - nix3_cli_json, - 'generate-manpage.nix', - 'utils.nix', - ], - output : 'new-cli', -) + +# Creates nix3_cli_files custom target variable, +# which outputs the entire src/command-ref/new-cli directory. +subdir('src/command-ref') nix3_manpages = [ 'nix3-build', @@ -245,6 +236,7 @@ foreach page : nix3_manpages '@OUTPUT@.tmp', '@OUTPUT@', ], + # nix3_cli_files set in doc/manual/src/command-ref/meson.build. input : nix3_cli_files, output : page + '.1', install : true, |