# **************************************************************** # * Settings * # **************************************************************** # dependencies SHELL = /bin/sh POD2HTML = @POD2HTML@ MKDIR = @MKDIR@ PERL = @PERL@ FIND = @FIND@ POD2HTML_TYPE = @POD2HTML_TYPE@ # **************************************************************** # * Other Fields # **************************************************************** # directories LIB = lib BRIC = ../${LIB}/Bric # **************************************************************** # * some things we can figure out here, so we shouldn't # * have to mess with the settings all the time # **************************************************************** # the sourcefiles PODFILES = $(shell ${FIND} ${BRIC} -name *.pod 2>/dev/null) SRCFILES = $(PODFILES) # suffixes: .SUFFIXES: .SUFFIXES: .pod .pl .html .man .gz HTML_TARGETS = $(addprefix html/,$(addsuffix .html,$(basename $(notdir ${SRCFILES})))) # **************************************************************** # * RULES follow # **************************************************************** all: doc doc: html # **************************************************************** # * This is a multiple target rule whose effect is to run # * pod2[whatever] recursively on the $(LIB) dir. The whatever # * is determined by the first prerequisite. # **************************************************************** html: $(HTML_TARGETS) $(HTML_TARGETS): html/%.html: ${BRIC}/%.pod ifeq (${POD@HTML_TYPE},"McDougall") ${POD2HTML} --bgcolor '#ffffff' --verbosity 1 ${BRIC} html else $(POD2HTML) --podpath=Bric --podroot=../${LIB} --verbose \ --flush --htmldir=html --recurse --index --infile=$^ \ --outfile=$@ --libpods=$(shell echo ${SRCFILES} | tr ' ' ':') endif chmod a+r $@ ${RM} pod2htm* clean: $(RM) -f html/*.html