blob: 352b29a9ffc82d2ad056e40015a17b8f8b69e919 (
plain)
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
|
# Copyright (c) 2010-2013 by Aleksey Cheusov
#
# See COPYRIGHT file in the distribution.
############################################################
.if !defined(_MKC_IMP_POD_MK)
_MKC_IMP_POD_MK := 1
POD2MAN ?= pod2man
POD2MAN_FLAGS := -r '' -n '${.TARGET:T:R}' -c ''
MESSAGE.pod2man ?= @${_MESSAGE} "POD2MAN: ${.TARGET}"
COMPILE.pod2man ?= ${_V} ${POD2MAN} ${POD2MAN_FLAGS}
POD2HTML ?= pod2html
POD2HTML_FLAGS ?=
MESSAGE.pod2html ?= @${_MESSAGE} "POD2HTML: ${.TARGET}"
COMPILE.pod2html ?= ${_V} ${POD2HTML} ${POD2HTML_FLAGS}
.SUFFIXES: .pod
.for i in 1 2 3 4 5 6 7 8 9
.SUFFIXES: .${i}
.pod.${i}:
${MESSAGE.pod2man}
${COMPILE.pod2man} -s ${i} ${.IMPSRC} > ${.TARGET}
.endfor
.SUFFIXES: .html
.pod.html:
${MESSAGE.pod2html}
${COMPILE.pod2html} < ${.IMPSRC} > ${.TARGET}
CLEANFILES += pod2htmd.tmp pod2htmi.tmp
.endif # _MKC_IMP_POD_MK
|