ROOT ?= $(PWD) HTTP_PORT ?= 49228 serve: nginx.conf nginx -p $(ROOT)/ -c $(ROOT)/$< nginx.conf: nginx.conf.in cat $< | \ sed -e 's@__ROOT__@$(ROOT)@g' \ -e 's@__HTTP_PORT__@$(HTTP_PORT)@g' > $@ .PHONY: serve