# Read templates, generate html files.
#
# $Revision: 1.1 $ $Date: 2016-09-19 22:50:16-04 $
# $Source: /home/vogelke/projects/autoindex/templates/RCS/Makefile,v $
# $Host: bsd118.wpafb.af.mil $
# $UUID: 04943e7d-4c44-50ff-aa86-49391b5c23f1 $
#
# Create HTML files to be included when showing a directory listing.

DEST = /home/vogelke/notebook

%.htm : %.tpl
	m4 $< > $@

all:
	-for s in *.tpl; do \
		dir=`echo $$s | sed -e 's/\.tpl//'`; \
		make $$dir.htm; \
		test -d $(DEST)/$$dir && mv $$dir.htm $(DEST)/$$dir/.calendar; \
	done

clean:
	rm -f *.htm
