diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-11-21 09:39:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-11-21 09:39:06 +0200 |
commit | a14bcd9028c502f21023a9c3d27354f030e82795 (patch) | |
tree | 1be5c250328f40c708e2061afd64887219b02219 /doc/cxx/parser | |
parent | b3b1a1d789d06c8d5ad5c93ae1c5a3c6a5e7fdff (diff) |
Add support for not cleaning generated files (cli, doc)
Diffstat (limited to 'doc/cxx/parser')
-rw-r--r-- | doc/cxx/parser/guide/makefile | 6 | ||||
-rw-r--r-- | doc/cxx/parser/makefile | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/doc/cxx/parser/guide/makefile b/doc/cxx/parser/guide/makefile index 579cf79..b11d57b 100644 --- a/doc/cxx/parser/guide/makefile +++ b/doc/cxx/parser/guide/makefile @@ -9,7 +9,7 @@ default := $(out_base)/ install := $(out_base)/.install dist := $(out_base)/.dist dist-win := $(out_base)/.dist-win -cleandoc := $(out_base)/.cleandoc +clean := $(out_base)/.clean # Build. # @@ -46,9 +46,11 @@ $(dist-win): $(dist) # Clean # -$(cleandoc): +$(clean): +ifneq ($(xsd_clean_gen),n) $(call message,rm $$1,rm -f $$1,$(out_base)/cxx-parser-guide.ps) $(call message,rm $$1,rm -f $$1,$(out_base)/cxx-parser-guide.pdf) +endif # How to. # diff --git a/doc/cxx/parser/makefile b/doc/cxx/parser/makefile index 2ede66e..ce856f3 100644 --- a/doc/cxx/parser/makefile +++ b/doc/cxx/parser/makefile @@ -11,12 +11,12 @@ default := $(out_base)/ install := $(out_base)/.install dist := $(out_base)/.dist dist-win := $(out_base)/.dist-win -cleandoc := $(out_base)/.cleandoc +clean := $(out_base)/.clean $(default): $(addprefix $(out_base)/,$(addsuffix /,$(docs))) $(install): $(addprefix $(out_base)/,$(addsuffix /.install,$(docs))) $(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(docs))) $(dist-win): $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(docs))) -$(cleandoc): $(addprefix $(out_base)/,$(addsuffix /.cleandoc,$(docs))) +$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(docs))) $(foreach m,$(docs),$(call import,$(src_base)/$m/makefile)) |