summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ee24043..d91f9ca 100644
--- a/Makefile
+++ b/Makefile
@@ -84,8 +84,9 @@ build:
--with-ld-opt=-lossp-uuid \
--add-module=./nginx-x-rid-header \
--add-module=./redis2-nginx-module \
- --add-module=./nginx-statsd
- cd $(BUILD_DIR)/ && make
+ --add-module=./nginx-statsd $(NGX_CONFIGURE)
+ cd $(BUILD_DIR)/ && \
+ make -j $(grep -c processor /proc/cpuinfo)
install:
cd $(BUILD_DIR)/ && make install
@@ -116,6 +117,6 @@ pagespeed:
help:
@echo "This is a Makefile to automatize compiling nginx from source.\n"
@echo "Run 'make fetch' to fetch the core and addons."
- @echo "Run 'make build' to configure and compile nginx."
+ @echo "Run 'make build' to configure and compile nginx. If you want to pass options to ./configure you can do this with 'NGX_CONFIGURE=options... make build' on the commmand line."
@echo "'make install' will install it system wide (needs root previleges)."
@echo "If you are on GNU/Debian, you can run 'make prepare' to install some needed libraries."