summaryrefslogtreecommitdiffhomepage
path: root/nginx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/Makefile')
-rw-r--r--nginx/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/nginx/Makefile b/nginx/Makefile
new file mode 100644
index 0000000..cb995f7
--- /dev/null
+++ b/nginx/Makefile
@@ -0,0 +1,28 @@
1.ONESHELL:
2
3VERSION=1.27.2
4
5all: src /home/pham/git/ngx_http_proxy_connect_module
6 cd $<
7 nginx -V |& \
8 sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \
9 sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \
10 xargs ./configure \
11 --with-http_xslt_module=dynamic \
12 --with-http_dav_module \
13 --with-http_image_filter_module \
14 --add-dynamic-module=/home/pham/git/ngx_http_proxy_connect_module
15 make modules
16 make
17 sudo make install
18 #cd ../.. && rm -rf nginx
19
20src:
21 curl -O https://nginx.org/download/nginx-${VERSION}.tar.gz
22 tar zxvf nginx-${VERSION}.tar.gz && mv nginx-${VERSION} $@
23
24config:
25 ln -sf `pwd`/* /etc/nginx
26
27/home/pham/git/ngx_http_proxy_connect_module:
28 git clone https://github.com/chobits/ngx_http_proxy_connect_module $@