CETOOLS := /cygdrive/c/Program\ Files/Windows\ CE\ Tools
PPC3TOOLS := $(CETOOLS)/wce420/POCKET\ PC\ 2003/Tools
default: setup.exe
%: %.template
	template=$$(< $<) && \
	 eval "echo \"$$template\"" > $@
%.CAB: %.inf
	PATH=$$PATH:$(PPC3TOOLS) Cabwiz $<
%.cpf: %.xml
	cp -f $< _setup.xml
	makecab /D COMPRESS=OFF _setup.xml $@
setup.exe: localhost.ini localhost.cpf readme.txt eula.txt
	ezsetup -l english -i localhost.ini -r readme.txt -e eula.txt -o $@
