File: pod2html.mk

package info (click to toggle)
desproxy 0.1.0~pre3-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 400 kB
  • ctags: 167
  • sloc: ansic: 1,749; makefile: 135; sh: 43
file content (37 lines) | stat: -rw-r--r-- 1,175 bytes parent folder | download
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
# Copyright (C) 2005-2007 Jari Aalto
#
# This program is free software; you can redistribute it and or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details at
# <http://www.gnu.org/copyleft/gpl.html>
#
# Put this to 'install' target:
#
#   install: $(MANHTML)

PACKAGE      	= package
PODCENTER	= $(PACKAGE) $$(date "+%Y-%m-%d")a
MANSECT	     	= 1
MANPOD	     	= $(PACKAGE).$(MANSECT).pod
MANPAGE	     	= $(PACKAGE).$(MANSECT)
MANHTML	     	= $(MANPAGE).html
# like --css=style.css --noindex
MANOPT		=

$(MANHTML): $(MANPOD)
	pod2html \
	--title="$(PODCENTER)" \
	--infile="$(MANPOD)" \
	--outfile="$(MANHTML)" \
	$(MANOPT) && \
	rm -f pod*.tmp
	# Fixes conversion. Cancel links in the PRE area.
        perl -i -ane 's,^(\s+)<a href.+?>(.+?)</a>,$$1$$2,g; print' $(MANHTML)

# End of of Makefile part