summaryrefslogtreecommitdiff
path: root/documentation/cxx/parser
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/cxx/parser')
-rw-r--r--documentation/cxx/parser/guide/makefile3
-rw-r--r--documentation/cxx/parser/makefile20
2 files changed, 20 insertions, 3 deletions
diff --git a/documentation/cxx/parser/guide/makefile b/documentation/cxx/parser/guide/makefile
index 1d85874..f1c96a6 100644
--- a/documentation/cxx/parser/guide/makefile
+++ b/documentation/cxx/parser/guide/makefile
@@ -10,13 +10,10 @@ dist := $(out_base)/.dist
dist-win := $(out_base)/.dist-win
cleandoc := $(out_base)/.cleandoc
-.PHONY: $(default) $(dist) $(dist-win) $(cleandoc)
-
# Build.
#
$(default): $(out_base)/cxx-parser-guide.ps $(out_base)/cxx-parser-guide.pdf
-
$(out_base)/cxx-parser-guide.ps: $(src_base)/index.xhtml \
$(src_base)/figure-1.png \
$(src_base)/guide.html2ps \
diff --git a/documentation/cxx/parser/makefile b/documentation/cxx/parser/makefile
new file mode 100644
index 0000000..69a9557
--- /dev/null
+++ b/documentation/cxx/parser/makefile
@@ -0,0 +1,20 @@
+# file : documentation/cxx/parser/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2006-2009 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make
+
+docs := guide
+
+default := $(out_base)/
+dist := $(out_base)/.dist
+dist-win := $(out_base)/.dist-win
+cleandoc := $(out_base)/.cleandoc
+
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(docs)))
+$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(docs)))
+$(dist-win): $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(docs)))
+$(cleandoc): $(addprefix $(out_base)/,$(addsuffix /.cleandoc,$(docs)))
+
+$(foreach m,$(docs),$(call import,$(src_base)/$m/makefile))