all : pepsi.html coke.html

%.html : %.html.in
	awk -f number.awk $< > $@.num
	awk -f top.awk $@.num > $@.top
	cat $@.num | fgrep -v h1 | fgrep -v h4 | awk -f toc.awk > $@.toc
	awk -f bot.awk $@.num > $@.bot
	cat $@.top $@.toc $@.bot > $@

clean : .FORCE
	rm -f *.num *.top *.toc *.bot *~

spotless : clean .FORCE
	rm -f idst5.html coke.html

.FORCE :
