# Makefile for SVG Color.

TOOLS=../../../tools

SAXON=java -classpath ../../../tools/saxonb/saxon9.jar net.sf.saxon.Transform

# include $(TOOLS)/common.mk

all : ../publish/SVGColor.html ../publish-primer/SVGColorPrimer.html sync

sync :
	rsync -auC style ../publish/
	rsync -auC style ../publish-primer/
	# rsync -auC examples ../publish/
	# rsync -auC rng ../publish/

../publish/SVGColor.html : SVGColor.html \
		definitions.xml publish.xml $(TOOLS)/publish.xsl
	$(SAXON) -ext:on -dtd:off -expand:off publish.xml $(TOOLS)/publish.xsl

../publish-primer/SVGColorPrimer.html : SVGColorPrimer.html \
		definitions-primer.xml publish-primer.xml $(TOOLS)/publish.xsl
	$(SAXON) -ext:on -dtd:off -expand:off publish-primer.xml $(TOOLS)/publish.xsl

.PHONY : sync
