XSLP = msxsl
FLGS = filetype=.html

TARGETS = \
#	d_200304.html \
#	d_200305.html \
#	d_200306.html \
#	d_200307.html \
#	d_200308.html \
#	d_200309.html \
#	d_200310.html \
#	d_200311.html \
#	d_200312.html \
#	d_200401.html \
#	d_200402.html \
#	d_200403.html \
#	d_200404.html \
#	d_200405.html \
#	d_200406.html \
#	d_200407.html \
#	d_200408.html \
#	d_200409.html \
#	d_200410.html \
#	d_200411.html \
#	d_200412.html \
#	d_200501.html \
#	d_200502.html \
	d_200503.html \
	d_200504.html \
	d_200505.html \
	index.html

.xml.html:
	$(XSLP) $< diary_v0200.xsl -o $*.html $(FLGS)

all: $(TARGETS) index.rdf same_birthday.html

clean:
	del $(TARGETS) index.rdf

#d_200401.html: diary_v0200.xsl calendar.xsl
#d_200402.html: diary_v0200.xsl calendar.xsl
#d_200403.html: diary_v0200.xsl calendar.xsl
#d_200404.html: diary_v0200.xsl calendar.xsl
#d_200405.html: diary_v0200.xsl calendar.xsl
#d_200406.html: diary_v0200.xsl calendar.xsl
#d_200407.html: diary_v0200.xsl calendar.xsl
#d_200408.html: diary_v0200.xsl calendar.xsl
#d_200409.html: diary_v0200.xsl calendar.xsl
#d_200410.html: diary_v0200.xsl calendar.xsl
#d_200411.html: diary_v0200.xsl calendar.xsl
#d_200412.html: diary_v0200.xsl calendar.xsl
#d_200501.html: diary_v0200.xsl calendar.xsl
#d_200502.html: diary_v0200.xsl calendar.xsl
d_200503.html: diary_v0200.xsl calendar.xsl
d_200504.html: diary_v0200.xsl calendar.xsl
d_200505.html: diary_v0200.xsl calendar.xsl
index.html:    diary_v0200.xsl calendar.xsl d_200504.xml d_200505.xml

index.rdf: index_rdf_v0200.xsl index.xml d_200501.xml d_200502.xml d_200503.xml d_200504.xml d_200505.xml
	$(XSLP) index.xml index_rdf_v0200.xsl -o index.rdf

same_birthday.html: same_birthday.xml ../xml/ra.xsl
	$(XSLP) same_birthday.xml ../xml/ra.xsl -o $*.html $(FLGS)