TARGET=docscm
TARGET_INC=../extract-doc.xml ../sxml2xml.xml

# Use A4 rather than US Letter
DOCSCM_PARAMS=-i a4paper

# Set this to override the DSSSL stylesheet used by Makefile.docbook.
#DOCSCM_STYLESHEET=$(CURDIR)/my-stylesheet.dsl

all: $(TARGET).pdf

$(TARGET).xml: $(TARGET_INC)

# The index is precious - expensive to build, but intermediary.
.SECONDARY: $(TARGET)-index.xml

clean:
	rm -f $(TARGET_INC)
	rm -f $(patsubst %.xml,%.sxml,$(TARGET_INC))
	rm -f $(TARGET).xml $(TARGET).tex $(TARGET).out
	rm -f $(TARGET)-index.xml

include $(shell docscm-config --makefile)
