| 1 |
# $ApsCVS: src/apsfilter/doc/Makefile,v 1.1.2.7 2002/02/24 20:47:49 andreas Exp $ |
| 2 |
# |
| 3 |
# Makefile for apsfilter documentation |
| 4 |
# |
| 5 |
|
| 6 |
RM=rm -f |
| 7 |
|
| 8 |
HTMLDOC_OPTS=--book --size a4 --color --no-title --no-toc --footer c.1 |
| 9 |
|
| 10 |
HTML_DUMP_CMD=w3m -dump |
| 11 |
|
| 12 |
|
| 13 |
OBJS=handbook.pdf handbook.ps handbook.txt |
| 14 |
|
| 15 |
|
| 16 |
.PHONY: all clean html pdf ps txt |
| 17 |
|
| 18 |
all: $(OBJS) |
| 19 |
|
| 20 |
|
| 21 |
html handbook.html: |
| 22 |
@echo You need to run \"configure\" in the parent directory first. |
| 23 |
@exit 1 |
| 24 |
|
| 25 |
pdf handbook.pdf: handbook.html |
| 26 |
@echo creating PDF edition... |
| 27 |
htmldoc -t pdf $(HTMLDOC_OPTS) -f handbook.pdf handbook.html |
| 28 |
|
| 29 |
ps handbook.ps: handbook.html |
| 30 |
@echo creating PostScript edition... |
| 31 |
htmldoc -t ps $(HTMLDOC_OPTS) -f handbook.ps handbook.html |
| 32 |
|
| 33 |
txt handbook.txt: handbook.html |
| 34 |
@echo creating plain text edition... |
| 35 |
$(HTML_DUMP_CMD) handbook.html | sed 's/ *$$//' > handbook.txt |
| 36 |
|
| 37 |
clean: |
| 38 |
$(RM) $(OBJS) *~ |