default: build

build: ngx_http_pow.c
	cd ../nginx; make -f Makefile modules; cd ../ngx-http-pow

.PHONY: configure
configure:
	../nginx/auto/configure \
		--prefix=/Users/jona/repos/ngx-pow/nginx/install \
		--with-debug \
		--add-dynamic-module=/Users/jona/repos/ngx-pow/ngx-http-pow

.PHONY: run
run: build
	../nginx/objs/nginx -c "$(PWD)/ngx_http_pow.conf" -g "daemon off;"
