1############################################################################ 2# Copyright (C) 2017 Jeremy S. Sanders 3# Email: Jeremy Sanders <jeremy@jeremysanders.net> 4# 5# This program is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 2 of the License, or 8# (at your option) any later version. 9# 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License along 16# with this program; if not, write to the Free Software Foundation, Inc., 17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18############################################################################ 19 20verfile=../VERSION 21RELEASE=$(shell cat $(verfile)) 22mansources=$(shell find manual-source -name *.rst) 23 24all: man manual 25 26############################################################################ 27# man pages 28 29%.1: %.pod $(verfile) 30 pod2man --release=$(RELEASE) --center="Veusz" $< > $@ 31 32%.man.txt: %.1 33 MANWIDTH=76 man ./$< > $@ 34 35man: man-page/veusz.1 man-page/veusz.man.txt 36 37############################################################################ 38# manual 39 40manual-pdf: manual/pdf/veusz.pdf 41 42manual-html: manual/html/index.html 43 44manual/pdf/veusz.pdf: $(mansources) $(verfile) 45 make -C manual-source latexpdf 46 mkdir -p manual/pdf 47 mv manual/latex/veusz.pdf manual/pdf/ 48 rm -rf manual/latex/ 49 50manual/html/index.html: $(mansources) $(verfile) 51 make -C manual-source html 52 53manual: manual-html manual-pdf 54 rm -rf manual/doctrees/ 55 56############################################################################ 57 58clean: 59 rm -f man-page/*.1 man-page/*.man.txt 60 make -C manual-source clean 61