#
# $Id: Makefile,v 1.4 1999/02/08 12:12:39 sas Exp $

# The main documentation is made of different chapters

SRC=sgml/head.isgml sgml/chap-1.isgml sgml/chap-2.isgml sgml/chap-3.isgml \
		sgml/chap-4.isgml sgml/chap-5.isgml sgml/chap-6.isgml \
		sgml/chap-7.isgml sgml/tail.isgml
MASTER=sgml/documentation.sgml

docs = $(MASTER) sgml/blob.sgml
html_docs = $(docs:%.sgml=%.html)
txt_docs = $(docs:%.sgml=%.txt)

%.html: %.sgml
	sgml2html -s 1 $<

%.txt: %.sgml
	sgml2txt $<

doc: $(docs) $(html_docs) $(txt_docs)

$(MASTER): $(SRC)
	cat $(SRC) > $@

clean:
	rm -f $(MASTER) *.html *.txt 
