#
# recipes/Makefile - generate HTML from XML, and write an index page
#
# $Id: Makefile,v 1.6 2002/02/10 18:16:18 esm Exp $
#

# Find all *.xml files.  These are the source recipes.
master_files = $(wildcard *.xml)

# HTML transformations.  This is simply the list of *.xml files, with
# the ".xml" converted to ".html"
html = $(patsubst %.xml,%.html,$(master_files))

all:	$(html)  index.html


index.html:	make-index.pl  $(master_files)
	./$<

$(html): %.html: %.xml  Makefile xml2html.pl
	./xml2html.pl $<

rsync:	all
	rsync -azv --cvs-exclude				\
		--exclude=TTT					\
		--exclude='*.BAK' --exclude='*TMP*'		\
		. gingerbear.org:public_html/recipes/.

clean:
	rm -f $(html)
