1
# pod2man.mk -- Makefile portion to convert *.pod files to manual pages
3
# Copyright information
5
# Copyright (C) 2008-2009 Jari Aalto
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License as
11
# published by the Free Software Foundation; either version 2 of the
12
# License, or (at your option) any later version
14
# This program is distributed in the hope that it will be useful, but
15
# WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
# General Public License for more details at
18
# Visit <http://www.gnu.org/copyleft/gpl.html>.
22
# Convert *.pod files to manual pages. Write this to 'install'
25
# install: build $(MANPAGE)
28
This makefile requires GNU Make.
31
# This variable *must* be set when calling
34
# Optional variables to set
36
PODCENTER ?= $$(date "+%Y-%m-%d")
42
MANPOD = $(MANSRC)$(PACKAGE).$(MANSECT).pod
43
MANPAGE = $(MANDEST)$(PACKAGE).$(MANSECT)
46
POD2MAN_FLAGS = --utf8
51
# make target - create manual page from a *.pod page
53
LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \
54
--center="$(PODCENTER)" \
56
--section="$(MANSECT)" \
58
| sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \
62
# End of of Makefile part