aboutsummaryrefslogtreecommitdiff
path: root/doc/cxx/parser
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cxx/parser')
-rw-r--r--doc/cxx/parser/guide/makefile6
-rw-r--r--doc/cxx/parser/makefile4
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))