You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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
|