# $Id$ # Copyright 2003 Joost van Baal # # This Makefile is free software; you can distribute it and/or modify it # under the terms of the GNU GPL. See http://www.gnu.org/copyleft/gpl.html . # Makefile for typesetting from zoem source # # Usage: make ; make clean # Requirements: zoem, groff, col, ps2pdf # zoem is available from http://micans.org/zoem/ # GNU groff works fine. Other roff implementations might work too. # BSD col as shipped with 4.4BSD-Lite and derivatives is used. # ps2pdf comes with Ghostscript. TROFF = groff COL = col PS2PDF = ps2pdf ZOEM = zoem BASE = gpg_5_min .SUFFIXES: .7 .html .azm .ps .txt .pdf all: typeset typeset: $(BASE).7 $(BASE).ps $(BASE).html $(BASE).txt $(BASE).pdf .azm.7: $(ZOEM) -d roff -i $< -o $@ $(ZOEM) -d roff -i $< -o $@ .7.ps: $(TROFF) -man $< > $@ .ps.pdf: $(PS2PDF) $< $@ .azm.html: $(ZOEM) -d html -i $< -o $@ $(ZOEM) -d html -i $< -o $@ # tidy -e # tidy -m -i -q $@ # FIXME # groff kills utf8 date .7.txt: $(TROFF) -t -e -mandoc -Tutf8 $< | $(COL) -bxp > $@ # *.fqf-roff *.fqf-html are generated from zoem faqs clean: -rm *.zmt *.zmr *.fqf-roff *.fqf-html