From 9c7aaf839025e58b25d1bb37afb2c11d36985dcb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Sep 2023 11:59:27 +0200 Subject: Add --dep-file option In particular, this now allows writing the dependency information to stdout by specifying `-` as this option's value. --- xsd/xsd/cxx/options.cli | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'xsd/xsd/cxx/options.cli') diff --git a/xsd/xsd/cxx/options.cli b/xsd/xsd/cxx/options.cli index 1eb1b61..1be7607 100644 --- a/xsd/xsd/cxx/options.cli +++ b/xsd/xsd/cxx/options.cli @@ -500,7 +500,7 @@ namespace CXX generated files on the main schema file as well as all the schema files that it includes/imports, transitively. This dependency file is then normally included into the main \cb{makefile} to implement - automatic dependency tracking. + automatic dependency tracking. See also the \cb{--dep-*} options. Note also that automatic dependency generation is not supported in the file-per-type mode (\cb{--file-per-type}). In this case, all @@ -536,8 +536,16 @@ namespace CXX NarrowString --dep-suffix = ".d" { "", - "Use the provided instead of the default \cb{.d} to - construct the name of the dependency file." + "Use instead of the default \cb{.d} to construct the name of + the dependency file. See also \cb{--dep-file}." + }; + + NarrowString --dep-file + { + "", + "Use as the generated dependency file path instead of deriving + it from the input file name. Write the dependency information to + \cb{stdout} if is \cb{-}. See also \cb{--dep-regex}." }; NarrowString --dep-regex -- cgit v1.1