generated from max-lt/nginx-foo-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (16 loc) · 783 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
scriptpath=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
ngx_version=1.27.0
ngx_image=${ngx_version}-alpine3.19
ngx_dir=/usr/src/nginx-${ngx_version}
cleanup-dev-headers:
@rm -rf ${scriptpath}/dev/{src,objs}
docker-dev-headers-image: Dockerfile.headers
@docker build -f Dockerfile.headers -t nginx-headers .
setup-dev-headers: cleanup-dev-headers docker-dev-headers-image
@docker run nginx-headers tar -c ${ngx_dir}/src ${ngx_dir}/objs | tar x -C ${scriptpath}/dev --strip-components 3 "*.h"
docker-image:
@docker build --progress plain -t nginx-vips .
docker-run: docker-image src/ngx_http_vips_module.c
@docker run --rm --name nginx-vips-container -p 8000:80 -v ${scriptpath}/dev/nginx.conf:/etc/nginx/nginx.conf:ro nginx-vips
clear:
@rm -r $(keys_path)