CORE=Makefile.core
SOAP=Makefile.soap
WSDL=Makefile.wsdl
SOAP11-ROR-HTTPBINDING=Makefile.soap11-ror-httpbinding
TESTSUITE=Makefile.testsuite

default:
	@echo "Please do either:";\
	echo "make all: builds all drafts";\
	echo "make {draft}: builds {draft}, where {draft} is one of:";\
	echo "	core";\
	echo "	soap";\
	echo "	wsdl";\
	echo "	soap11-ror-httpbinding";\
	echo "	testsuite"

all: core soap wsdl 

core:
	make -f $(CORE)

soap:
	make -f $(SOAP)

wsdl:
	make -f $(WSDL)

soap11-ror-httpbinding:
	make -f $(SOAP11-ROR-HTTPBINDING)

testsuite:
	make -f $(TESTSUITE)

clean:
	@for m in $(CORE) $(SOAP) $(WSDL) $(TESTSUITE); do make -f $$m clean; done

.PHONY: default all core soap wsdl testsuite clean soap11-ror-httpbinding

# Used for nxml-mode in Emacs
xmlspec.rnc: entities.dtd xmlspec.dtd
	cat $? > dtdtmp
	trang -O rnc -I dtd dtdtmp $@
	rm dtdtmp

