-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
44 lines (33 loc) · 1.4 KB
/
Makefile.in
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Source files. mod_auth_mellon.c must be the first file.
SRC=src/ngx_http_pool.c \
src/ngx_http_redirectionio_module.c \
src/ngx_http_redirectionio_module_filter.c \
src/ngx_http_redirectionio_module_pool.c \
src/ngx_http_redirectionio_protocol.c
PATCH_FILES:=@PATCH_FILES@
DESTDIR ?=
all: nginx-@NGINX_VERSION@/objs/ngx_http_redirectionio_module.so
nginx-@NGINX_VERSION@.tar.gz:
wget http://nginx.org/download/nginx-@NGINX_VERSION@.tar.gz -O nginx-@NGINX_VERSION@.tar.gz
nginx-@NGINX_VERSION@: nginx-@NGINX_VERSION@.tar.gz
tar -xvzf nginx-@NGINX_VERSION@.tar.gz
.PHONY: patch
patch: $(PATCH_FILES)
.PHONY: $(PATCH_FILES)
$(PATCH_FILES): %: nginx-@NGINX_VERSION@
cd nginx-@NGINX_VERSION@; patch -f -p1 < ../$* || true
nginx-@NGINX_VERSION@/objs/ngx_http_redirectionio_module.so: nginx-@NGINX_VERSION@ patch
cd nginx-@NGINX_VERSION@; \
./configure --prefix=@NGINX_PREFIX@ @NGINX_CONFIGURE@ @ADD_MODULE@=../; \
make -j12 @NGINX_MAKE_TARGET@
.PHONY: test
test: nginx-@NGINX_VERSION@/objs/ngx_http_redirectionio_module.so
@NGINX_BIN@ -t -c @abs_srcdir@/nginx-test.conf
.PHONY: install
install: nginx-@NGINX_VERSION@/objs/ngx_http_redirectionio_module.so
mkdir -p $(DESTDIR)@MODULE_DIR@/
install -c -m 644 nginx-@NGINX_VERSION@/objs/ngx_http_redirectionio_module.so $(DESTDIR)@MODULE_DIR@/ngx_http_redirectionio_module.so
.PHONY: clean
clean:
rm -rf nginx-@NGINX_VERSION@
rm -f nginx-@NGINX_VERSION@.tar.gz