################################################################
DBMS   ?= localhost  # localhost | pasquale | pasquale-devel
AUTH   ?=            # ia2token | garrtoken | <empty>
################################################################

all: formatresponsefilter.properties authpolicy.properties web.xml search.properties

web.xml:
	cd web-xml && cat web.xml-begining web.xml-format-filter web.xml-$(AUTH)-filter web.xml-authorization-filter web.xml-servlets web.xml-ending > ../web.xml

search.properties: dbms.conf-$(DBMS)
	cp dbms.conf-$(DBMS) $@

formatresponsefilter.properties: formatresponsefilter.properties.in
	cat dbms.conf-$(DBMS) formatresponsefilter.properties.in > $@

authpolicy.properties: dbms.conf-$(DBMS)
	cp dbms.conf-$(DBMS) $@

.PHONY:
clean:
	-rm -f formatresponsefilter.properties authpolicy.properties search.properties web.xml
