summaryrefslogtreecommitdiff
path: root/xsd/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-11-21 09:39:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-11-21 09:39:06 +0200
commita14bcd9028c502f21023a9c3d27354f030e82795 (patch)
tree1be5c250328f40c708e2061afd64887219b02219 /xsd/makefile
parentb3b1a1d789d06c8d5ad5c93ae1c5a3c6a5e7fdff (diff)
Add support for not cleaning generated files (cli, doc)
Diffstat (limited to 'xsd/makefile')
-rw-r--r--xsd/makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/xsd/makefile b/xsd/makefile
index 8587458..5e5dedb 100644
--- a/xsd/makefile
+++ b/xsd/makefile
@@ -164,8 +164,11 @@ $(dist-win): $(xsd)
$(clean): \
$(xsd).o.clean \
$(addsuffix .cxx.clean,$(cxx_obj)) \
- $(addsuffix .cxx.clean,$(cxx_od)) \
- $(addprefix $(out_base)/,$(cli_tun:.cli=.cxx.cli.clean))
+ $(addsuffix .cxx.clean,$(cxx_od))
+
+ifneq ($(xsd_clean_gen),n)
+$(clean): $(addprefix $(out_base)/,$(cli_tun:.cli=.cxx.cli.clean))
+endif
# Generated .gitignore.
#