box-o-sand/web/Makefile
2011-01-03 16:40:52 -05:00

17 lines
224 B
Makefile

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