docs/Makefile

Thu, 12 Oct 2023 00:00:35 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 12 Oct 2023 00:00:35 +0200
changeset 753
24dc84788dee
child 754
4bc7d966c9db
permissions
-rw-r--r--

replace most of the build system with uwproj

universe@753 1 # Copyright 2023 Mike Becker. All rights reserved.
universe@753 2 #
universe@753 3 # Redistribution and use in source and binary forms, with or without
universe@753 4 # modification, are permitted provided that the following conditions are met:
universe@753 5 #
universe@753 6 # 1. Redistributions of source code must retain the above copyright
universe@753 7 # notice, this list of conditions and the following disclaimer.
universe@753 8 #
universe@753 9 # 2. Redistributions in binary form must reproduce the above copyright
universe@753 10 # notice, this list of conditions and the following disclaimer in the
universe@753 11 # documentation and/or other materials provided with the distribution.
universe@753 12 #
universe@753 13 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@753 14 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@753 15 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@753 16 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@753 17 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@753 18 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@753 19 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@753 20 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@753 21 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@753 22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@753 23
universe@753 24 include ../config.mk
universe@753 25
universe@753 26 PAGES = index features install license modules-ucx2
universe@753 27 DOCS_HTML = $(PAGES:%=$(DOCS_DIR)/web/%.html)
universe@753 28 DOCS_CSS = $(DOCS_DIR)/web/ucx.css
universe@753 29
universe@753 30 all: all-html all-api
universe@753 31
universe@753 32 all-html: $(DOCS_DIR)/web $(DOCS_HTML) $(DOCS_CSS) FORCE
universe@753 33 @echo "[ HTML Docs Generated ]"
universe@753 34
universe@753 35 all-api: $(DOCS_DIR)/web $(DOCS_DIR)/web/api-2.1 $(DOCS_DIR)/web/api FORCE
universe@753 36 @echo "[ API Docs Generated ]"
universe@753 37
universe@753 38 $(DOCS_DIR)/web/api-2.1: api-2.1 FORCE
universe@753 39 $(COPYALL) $< $@
universe@753 40
universe@753 41 $(DOCS_DIR)/web/api: FORCE
universe@753 42 cd $(src_dir); $(DOXYGEN)
universe@753 43
universe@753 44 $(DOCS_DIR)/web:
universe@753 45 $(MKDIR) $@
universe@753 46
universe@753 47 $(DOCS_CSS): src/ucx.css
universe@753 48 $(COPYFILE) $< $@
universe@753 49
universe@753 50 $(DOCS_DIR)/web/modules-ucx2.html: src/modules-ucx2.md
universe@753 51 $(PANDOC) -c ucx.css -B src/header-ucx2.html -A src/footer.html \
universe@753 52 -T 'UAP Common Extensions' -o $@ $<
universe@753 53
universe@753 54 $(DOCS_DIR)/web/%.html: src/%.md
universe@753 55 $(PANDOC) -c ucx.css -B src/header.html -A src/footer.html \
universe@753 56 -T 'UAP Common Extensions' -o $@ $<
universe@753 57
universe@753 58 FORCE:

mercurial