# $ApsCVS: src/apsfilter/doc/Makefile,v 1.1.2.7 2002/02/24 20:47:49 andreas Exp $
#
# Makefile for apsfilter documentation
#

RM=rm -f

HTMLDOC_OPTS=--book --size a4 --color --no-title --no-toc --footer c.1

HTML_DUMP_CMD=w3m -dump


OBJS=handbook.pdf handbook.ps handbook.txt


.PHONY: all clean html pdf ps txt

all: $(OBJS)


html handbook.html: 
	@echo You need to run \"configure\" in the parent directory first.
	@exit 1

pdf handbook.pdf: handbook.html
	@echo creating PDF edition...
	htmldoc -t pdf $(HTMLDOC_OPTS) -f handbook.pdf handbook.html

ps handbook.ps: handbook.html
	@echo creating PostScript edition...
	htmldoc -t ps $(HTMLDOC_OPTS) -f handbook.ps handbook.html

txt handbook.txt: handbook.html
	@echo creating plain text edition...
	$(HTML_DUMP_CMD) handbook.html | sed 's/ *$$//' > handbook.txt

clean:
	$(RM) $(OBJS) *~
