universe@256: # universe@256: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. universe@256: # universe@256: # Copyright 2017 Olaf Wintermann. All rights reserved. universe@256: # universe@256: # Redistribution and use in source and binary forms, with or without universe@256: # modification, are permitted provided that the following conditions are met: universe@256: # universe@256: # 1. Redistributions of source code must retain the above copyright universe@256: # notice, this list of conditions and the following disclaimer. universe@256: # universe@256: # 2. Redistributions in binary form must reproduce the above copyright universe@256: # notice, this list of conditions and the following disclaimer in the universe@256: # documentation and/or other materials provided with the distribution. universe@256: # universe@256: # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" universe@256: # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE universe@256: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE universe@256: # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE universe@256: # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR universe@256: # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF universe@256: # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS universe@256: # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN universe@256: # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) universe@256: # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE universe@256: # POSSIBILITY OF SUCH DAMAGE. universe@256: # universe@256: universe@256: PD=pandoc universe@256: PFLAGS=-c ucx.css -B header.html -A footer.html -T 'UAP Common Extensions' universe@256: universe@256: SRC = index.md universe@256: SRC += examples.md universe@256: SRC += install.md universe@256: SRC += integration.md universe@256: SRC += license.md universe@256: SRC += modules.md universe@256: universe@256: DEST = ../web universe@256: DEST_MAN = ../man universe@256: universe@256: PROJROOT = ../.. universe@256: LOGO = uaplogo.png universe@256: universe@256: HTML = $(SRC:%.md=$(DEST)/%.html) universe@256: universe@256: all: html api universe@256: universe@256: universe@256: html: $(DEST) $(DEST)/ucx.css $(DEST)/$(LOGO) $(HTML) universe@256: universe@256: universe@256: api: $(DEST) universe@256: cd $(PROJROOT); doxygen universe@256: universe@256: $(DEST): universe@256: mkdir -p $@ universe@256: universe@256: $(DEST)/%.html: %.md universe@256: $(PD) $(PFLAGS) $< -o $@ universe@256: universe@256: $(DEST)/ucx.css: ucx.css universe@256: cp $< $@ universe@256: universe@256: $(DEST)/$(LOGO): $(PROJROOT)/$(LOGO) universe@256: cp $< $@ universe@256: universe@256: clean: universe@256: rm -Rf $(DEST) $(DEST_MAN)