# keep these in some kind of order
# they turn up in that order in table of contents

HTML = index.html overview.html roadmap.html setup.html configuration.html RFCs.html debugging.html compatibility.html DES.html exportlaws.html glossary.html bibliography.html WWWref.html rationale.html manpages.html

LYNX = index.lynx overview.lynx roadmap.lynx setup.lynx configuration.lynx RFCs.lynx debugging.lynx compatibility.lynx DES.lynx exportlaws.lynx glossary.lynx bibliography.lynx WWWref.lynx rationale.lynx manpages.lynx

TEXT = index.text overview.text roadmap.text setup.text configuration.text RFCs.text debugging.text compatibility.text DES.text exportlaws.text glossary.text bibliography.text WWWref.text rationale.text manpages.text

# where are scripts
SCRIPTDIR = ../utils
# scripts for .html -> .text
SCRIPTS = $(SCRIPTDIR)/html2txt.sed $(SCRIPTDIR)/xref.sed

# general targets

contents: contents.html

text: contents.text $(TEXT)

lynx: contents.lynx $(LYNX)

all: contents.text contents.lynx $(TEXT) $(LYNX) $(SCRIPTS)

clean:
	rm -f contents.html *.text *.lynx

# rules for actual file makes

contents.html: $(HTML) $(SCRIPTDIR)/contents.awk
	awk -f $(SCRIPTDIR)/contents.awk $(HTML) > contents.html

%.text: %.html
	sed -f $(SCRIPTDIR)/html2txt.sed $< | sed -f $(SCRIPTDIR)/xref.sed > $@

%.lynx: %.html
	lynx -dump $< > $@

# This file is RCSID $Id: Makefile,v 1.9 1999/04/08 05:08:13 sandy Exp $
