/
Makefile.in
63 lines (50 loc) · 1.87 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# ****************************************************************
# * 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