diff -r aaad6674a1a3 -r 24dc84788dee docs/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/Makefile Thu Oct 12 00:00:35 2023 +0200 @@ -0,0 +1,58 @@ +# Copyright 2023 Mike Becker. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include ../config.mk + +PAGES = index features install license modules-ucx2 +DOCS_HTML = $(PAGES:%=$(DOCS_DIR)/web/%.html) +DOCS_CSS = $(DOCS_DIR)/web/ucx.css + +all: all-html all-api + +all-html: $(DOCS_DIR)/web $(DOCS_HTML) $(DOCS_CSS) FORCE + @echo "[ HTML Docs Generated ]" + +all-api: $(DOCS_DIR)/web $(DOCS_DIR)/web/api-2.1 $(DOCS_DIR)/web/api FORCE + @echo "[ API Docs Generated ]" + +$(DOCS_DIR)/web/api-2.1: api-2.1 FORCE + $(COPYALL) $< $@ + +$(DOCS_DIR)/web/api: FORCE + cd $(src_dir); $(DOXYGEN) + +$(DOCS_DIR)/web: + $(MKDIR) $@ + +$(DOCS_CSS): src/ucx.css + $(COPYFILE) $< $@ + +$(DOCS_DIR)/web/modules-ucx2.html: src/modules-ucx2.md + $(PANDOC) -c ucx.css -B src/header-ucx2.html -A src/footer.html \ + -T 'UAP Common Extensions' -o $@ $< + +$(DOCS_DIR)/web/%.html: src/%.md + $(PANDOC) -c ucx.css -B src/header.html -A src/footer.html \ + -T 'UAP Common Extensions' -o $@ $< + +FORCE: