summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus_arch2015-03-15 12:12:42 +0100
committerhorus_arch2015-03-15 12:12:42 +0100
commit28adb69ff8d8489dfa5a2284e5ce72feba278ed4 (patch)
treebaf13f8953220eba984e302c4f1a3b319e66841e
parente388e6bb92b42aaacedcec1ab980d53475abb8cc (diff)
downloadnginx-build-28adb69ff8d8489dfa5a2284e5ce72feba278ed4.tar.gz
Add make target libraries which checks for some missing dependencies and tries to install it.
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6226568..85ecd54 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+NGX_PAGESPEED_VERSION=1.9.32.3
NGX_VERSION=1.6.2
BUILD_DIR=nginx-$(NGX_VERSION)
@@ -90,3 +91,15 @@ install:
clean:
rm nginx-$(NGX_VERSION).tar.gz
rm nginx-$(NGX_VERSION).tar.gz.asc
+
+libraries:
+ dpkg -l | grep build-essential || apt-get install build-essential
+ dpkg -l | grep zlib1g-dev || apt-get install zlib1g-dev
+ dpkg -l | grep -E '^libpcre3$' || apt-get install libpcre3
+ dpkg -l | grep -E '^libpcre3-dev$' || apt-get install libpcre3-dev
+ dpkg -l | grep liblua || apt-get install libluajit-5.1-dev
+ dpkg -l | grep libossp-uuid-dev || apt-get install libossp-uuid-dev
+ (test -d $(BUILD_DIR)/ngx_pagespeed && cd $(BUILD_DIR)/ngx_pagespeed \
+ wget https://dl.google.com/dl/page-speed/psol/$(NGX_PAGESPEED_VERSION).tar.gz &&
+ tar -xzvf $(NGX_PAGESPEED_VERSION).tar.gz) || \
+ echo "You need to run 'make fetch_dep' first to download ngx_pagespeed."