#----------------------------------------------------------------------------- # # POPular -- A POP3 server and proxy for large mail systems # # $Id: Makefile.am,v 1.10 2004/08/21 10:19:17 sqrt Exp $ # # http://www.remote.org/jochen/mail/popular/ # #----------------------------------------------------------------------------- # # Copyright 1999-2003 by Jochen Topf # # 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. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA # #----------------------------------------------------------------------------- SUBDIRS := log man EXTRA_DIST := XML bin gfx html popular-$(VERSION).html popular-$(VERSION).ps popular-$(VERSION)-htmldoc.tar.gz popular.sgml GZIP := gzip if MAKE_SGML DOC_FROM_SGML := tar html ps pdf endif .PHONY: all clean all: $(DOC_FROM_SGML) clean: rm -f popular-*-htmldoc.tar.gz rm -f popular-*.ps popular-*.ps.gz rm -f popular-*.pdf popular-*.pdf.gz rm -f popular-*.rtf popular-*.rtf.gz rm -f popular-*.html popular-*.html.gz rm -fr html #----------------------------------------------------------------------------- # HTML version #----------------------------------------------------------------------------- .PHONY: tar tar: popular-$(VERSION)-htmldoc.tar.gz html/popular.htm: popular.sgml man/*.sgml rm -fr html sgmltools --backend=html $< mv popular html mkdir html/gfx cp gfx/*.gif html/gfx/ popular-$(VERSION)-htmldoc.tar.gz: html/popular.htm $(TAR) czf $@ html #----------------------------------------------------------------------------- # HTML all-in-one version #----------------------------------------------------------------------------- .PHONY: html html: popular-$(VERSION).html popular-$(VERSION).html: popular.sgml sgmltools --backend=onehtml $< mv popular.html $@ #----------------------------------------------------------------------------- # RTF version #----------------------------------------------------------------------------- .PHONY: rtf rtf: popular-$(VERSION).rtf popular-$(VERSION).rtf: popular.sgml sgmltools --backend=rtf $< mv popular.rtf $@ #----------------------------------------------------------------------------- # TeX/DVI/Postscript version #----------------------------------------------------------------------------- .PHONY: ps ps: popular-$(VERSION).ps popular-$(VERSION).ps: popular.sgml sgmltools --backend=ps $< mv popular.ps $@ #----------------------------------------------------------------------------- # PDF version #----------------------------------------------------------------------------- .PHONY: pdf pdf: popular-$(VERSION).pdf popular-$(VERSION).pdf: popular.sgml sgmltools --backend=pdf $< mv popular.pdf $@ #----------------------------------------------------------------------------- # gzip #----------------------------------------------------------------------------- %.gz: % $(GZIP) -9 -f $< #-- THE END ------------------------------------------------------------------