From 3c853bc264719437bcb2807d75ff5e9f9a3ea4f8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Sep 2009 14:40:53 +0200 Subject: Add distribution-specific files, dist and dist-win targets --- documentation/cxx/parser/guide/makefile | 3 --- documentation/cxx/parser/makefile | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 documentation/cxx/parser/makefile (limited to 'documentation/cxx/parser') 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 +# 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)) -- cgit v1.1