cache/loc.%: $(CONF)
@wget -O - 'http://freegeoip.net/csv/$(HOST_$*)' | \
- awk -F, '{ printf "%s, %s\n", $$8, $$9 }' > $@
+ awk -F'", *"' '{ printf "\"%s\", \"%s\"\n", $$8, $$9 }' > $@
####################
# 'virtual' targets in that there's no real file attached
./tunproxy -t $$(cat cache/host.$(call leftnode,$*)):$$(cat cache/port.$*@1) \
-p $(call default,EXTERNAL_PORT,$(call rightnode,$*)) -e -d
+# reporting
+.PHONY: report
+report:
+ @echo SHELL=$(SHELL)
+ @echo "===> Configuration ($(CONF)):"
+ @cat $(CONF)
+ @for f in log/*; do \
+ echo "===> Log file $$(basename $$f):"; \
+ cat $$f; \
+ done