BOX_TARGETS = body1.shtml \
              body11.shtml \
              body12.shtml \
              body13.shtml \
              body14.shtml \
              body15.shtml \
              body17.shtml \
              body18.shtml \
              body20.shtml \
              body25.shtml \
              body60.shtml \
              box05.shtml \
              box07.shtml \
              box08.shtml \
              box10.shtml \
              box14.shtml \
              skel.shtml

all: clean index.html

index.html: ${BOX_TARGETS}
	@echo "Making index.html..."
	@../bin/lfpagecomposer skel.pre > index.html
	@mv index.html ../../index.html
	@find . -name '*html' -exec $(RM) {} \;

%.shtml: %.pre
	@echo "Making $*..."
	@../../xml/bin/apply_stylesheets.pl $*.pre

clean:
	@echo "Cleaning..."
	@find . -name '*~' -exec $(RM) {} \;
	@find . -name '*html' -exec $(RM) {} \;

