a grand renaming so that the most significant portion of the name comes first
This commit is contained in:
39
perl-practice/web/Makefile
Normal file
39
perl-practice/web/Makefile
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
ROOT ?= $(PWD)
|
||||
HTTP_PORT ?= 49228
|
||||
NGINX_CONF_IN := nginx.conf.in
|
||||
ALL_NGINX_CONF_INPUTS := \
|
||||
$(NGINX_CONF_IN) \
|
||||
$(wildcard perl_requirements.d/*) \
|
||||
$(wildcard perl_locations.d/*)
|
||||
|
||||
|
||||
serve-lighttpd: lighttpd.conf
|
||||
lighttpd -D -f $(ROOT)/$<
|
||||
|
||||
|
||||
serve-nginx: nginx.conf
|
||||
nginx -p $(ROOT)/ -c $(ROOT)/$<
|
||||
|
||||
|
||||
nginx.conf: $(ALL_NGINX_CONF_INPUTS)
|
||||
cat $< | \
|
||||
sed -e 's@__ROOT__@$(ROOT)@g' \
|
||||
-e 's@__HTTP_PORT__@$(HTTP_PORT)@g' > $@
|
||||
|
||||
|
||||
lighttpd.conf: lighttpd.conf.in
|
||||
cat $< | \
|
||||
sed -e 's@__ROOT__@$(ROOT)@g' \
|
||||
-e 's@__HTTP_PORT__@$(HTTP_PORT)@g' > $@
|
||||
|
||||
|
||||
serve-cgiwrap: cgiwrap-fcgi.pl
|
||||
perl $<
|
||||
|
||||
|
||||
cgiwrap-fcgi.pl: cgiwrap-fcgi.pl.in
|
||||
cat $< | sed -e 's@__ROOT__@$(ROOT)@g' > $@
|
||||
|
||||
|
||||
.PHONY: serve-nginx serve-lighttpd serve-cgiwrap
|
Reference in New Issue
Block a user