1# Copyright (c) 2000-2015 Paul Mattes. 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# * Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. 9# * Redistributions in binary form must reproduce the above copyright 10# notice, this list of conditions and the following disclaimer in the 11# documentation and/or other materials provided with the distribution. 12# * Neither the name of Paul Mattes nor his contributors may be used 13# to endorse or promote products derived from this software without 14# specific prior written permission. 15# 16# THIS SOFTWARE IS PROVIDED BY PAUL MATTES "AS IS" AND ANY EXPRESS OR 17# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN 19# NO EVENT SHALL PAUL MATTES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 21# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 23# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 24# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 27# Auxiliary makefile for wpr3287 28 29PRODUCT = wpr3287 30 31all: 32 @echo "Must pick a specific make target." 33 34DOCS = html/$(PRODUCT)-man.html html/ReleaseNotes.html 35 36src.tgz: $(DOCS) Makefile.aux 37 38MANDEP = html.m4 m4man Makefile.aux version.txt 39MKHTML = ./m4man -t html -p $(PRODUCT) 40 41# Rule for building the documentation. 42man: $(DOCS) 43 44# Rules for building man pages and derived HTML documentation. 45html/$(PRODUCT)-man.html: pr3287.man.m4 $(MANDEP) 46 $(MKHTML) -n $(PRODUCT) -o $@ pr3287.man.m4 47html/ReleaseNotes.html: html/documentation-relnotes-body.html mkstand.bash 48 ./mkstand.bash "$(PRODUCT) Release Notes" html/documentation-relnotes-body.html $@ 49