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