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 modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2 of the License, or
12
# (at your option) any later version.
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program. If not, see <http://www.gnu.org/licenses/>.
24
# Convert *.pod files to manual pages. Write this to 'install'
27
# install: build $(MANPAGE)
30
This makefile requires GNU Make.
33
# This variable *must* be set when calling
36
# Optional variables to set
38
PODCENTER ?= $$(date "+%Y-%m-%d")
44
MANPOD = $(MANSRC)$(PACKAGE).$(MANSECT).pod
45
MANPAGE = $(MANDEST)$(PACKAGE).$(MANSECT)
48
POD2MAN_FLAGS = --utf8
53
# make target - create manual page from a *.pod page
55
LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \
56
--center="$(PODCENTER)" \
58
--section="$(MANSECT)" \
60
| sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \
64
# End of of Makefile part