summaryrefslogtreecommitdiffhomepage
path: root/nginx/Makefile
blob: cb995f7df5c77b082a20a2b4fccf510b630103b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.ONESHELL:

VERSION=1.27.2

all: src /home/pham/git/ngx_http_proxy_connect_module
	cd $<
	nginx -V |& \
	sed -nE 's/^configure arguments: ([^\n]*)$$/\1/p' | \
	sed -nE 's/([^'"'"' \t\n]+('"'"'([^'"'"'\]|\\'"'"'?)*'"'"'|"([^"\\]|\\"?)*")?) ?/\1\n/gp' | \
	xargs ./configure \
		--with-http_xslt_module=dynamic \
		--with-http_dav_module \
		--with-http_image_filter_module \
		--add-dynamic-module=/home/pham/git/ngx_http_proxy_connect_module
	make modules
	make
	sudo make install
	#cd ../.. &&  rm -rf nginx

src:
	curl -O https://nginx.org/download/nginx-${VERSION}.tar.gz
	tar zxvf nginx-${VERSION}.tar.gz && mv nginx-${VERSION} $@

config:
	ln -sf `pwd`/* /etc/nginx

/home/pham/git/ngx_http_proxy_connect_module:
	git clone https://github.com/chobits/ngx_http_proxy_connect_module $@