diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-18 15:18:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-18 15:18:15 +0200 |
commit | 780a199410056c9589f5868a836f565b452fb14e (patch) | |
tree | facaad465a1d9e762b9b337fef73926a6131ade6 /doc/guide/makefile | |
parent | ef796634015330f4e5feb77e90d478d1bd54434d (diff) |
Write getting started guide
Diffstat (limited to 'doc/guide/makefile')
-rw-r--r-- | doc/guide/makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/guide/makefile b/doc/guide/makefile new file mode 100644 index 0000000..405c51d --- /dev/null +++ b/doc/guide/makefile @@ -0,0 +1,40 @@ +# file : doc/guide/makefile +# author : Boris Kolpackov <boris@codesynthesis.com> +# copyright : Copyright (c) 2009 Code Synthesis Tools CC +# license : MIT; see accompanying LICENSE file + +include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make + +default := $(out_base)/ +install := $(out_base)/.install +cleandoc := $(out_base)/.cleandoc + +# Build. +# +$(default): $(out_base)/cli-guide.ps $(out_base)/cli-guide.pdf + + +$(out_base)/cli-guide.ps: $(src_base)/index.xhtml \ + $(src_base)/guide.html2ps \ + | $(out_base)/. + $(call message,html2ps $<,html2ps -f $(src_base)/guide.html2ps -o $@ $<) + +$(out_base)/cli-guide.pdf: $(out_base)/cli-guide.ps | $(out_base)/. + $(call message,ps2pdf $<,ps2pdf14 $< $@) + +# Install. +# +$(install): $(out_base)/cli-guide.ps $(out_base)/cli-guide.pdf + $(call install-data,$(src_base)/index.xhtml,$(install_doc_dir)/cli/guide/index.xhtml) + $(call install-data,$(src_base)/cli-guide.ps,$(install_doc_dir)/cli/guide/cli-guide.ps) + $(call install-data,$(src_base)/cli-guide.pdf,$(install_doc_dir)/cli/guide/cli-guide.pdf) + +# Clean. +# +$(cleandoc): + $(call message,rm $$1,rm -f $$1,$(out_base)/cli-guide.ps) + $(call message,rm $$1,rm -f $$1,$(out_base)/cli-guide.pdf) + +# How to. +# +$(call include,$(bld_root)/install.make) |