# This Makefile is for the ExIT issue tracking system.
# For more information about ExIT, see 
# http://www.w3.org/2003/12/exit/

# The value of the URI variable is the URI to the
# primary XML file containing your issues.
# You MUST provide a value
# Example:
#  URI=http://www.w3.org/2001/tag/issues.xml
URI=http://www.example.com/issues.xml

# The value of the XSL_ENGINE variable is the command
# to process the XSLT 1.0 files of ExIT. Note that
# you MAY have to change the order of the parameters
# in the rules below if you change the value of
# XSL_ENGINE
# For more information about xsltproc, see
#  http://xmlsoft.org/XSLT/xsltproc2.html
XSL_ENGINE=xsltproc

## Normally, you should not have to change anything
## else below this line

# The value of the EXITPATH XSLT files If you wish to generate OFILES
# from other copies of the ExIT files (XSLT, CSS, and ECMASCRIPT); set
# EXITXSLPATH appropriately. Unless you are developing ExIT, you should
# not change the value of this variable.
EXITXSLPATH=http://dev.w3.org/cvsweb/~checkout~/2002/issues/xsl/

# You should normally not modify the rest of the file, except
# if you are using a different XSL_ENGINE.
OFILES=issues.html graph_states.svg graph_types.svg concerning.html\
 actions.html actions_owner.html originators.html\
 ack_sort.html state_sort.html type_sort.html

IFILE=issues.xml

#Note use of local main.xsl here. main.xsl itself includes
#$(EXITXSLPATH)main.xsl
MAINFILE=main.xsl

all: $(OFILES)

issues.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
         --stringparam uri-to-issues-xml "$(URI)" \
         "$(MAINFILE)" $< > $@

ack_sort.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
         --stringparam sort-key ack \
         --stringparam uri-to-issues-xml "$(URI)" \
         "$(MAINFILE)" $< > $@

type_sort.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
         --stringparam sort-key type \
         --stringparam uri-to-issues-xml "$(URI)" \
         "$(MAINFILE)" $< > $@

state_sort.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
         --stringparam sort-key state \
         --stringparam uri-to-issues-xml "$(URI)" \
         "$(MAINFILE)" $< > $@

graph_states.svg: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
	"$(EXITXSLPATH)graph_state.xsl" \
	$< > $@

graph_types.svg: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
	"$(EXITXSLPATH)graph_types.xsl" \
	$< > $@

concerning.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
	"$(EXITXSLPATH)concerning.xsl" \
	$< > $@

actions.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
	"$(EXITXSLPATH)actions.xsl" \
	$< > $@

actions_owner.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
	"$(EXITXSLPATH)actions_owner.xsl" \
	$< > $@

originators.html: $(IFILE)
	$(XSL_ENGINE) \
         --stringparam exitxslpath "$(EXITXSLPATH)" \
	"$(EXITXSLPATH)originators.xsl" \
	$< > $@

clean:
	rm -f $(OFILES)
