From 28adb69ff8d8489dfa5a2284e5ce72feba278ed4 Mon Sep 17 00:00:00 2001 From: horus_arch Date: Sun, 15 Mar 2015 12:12:42 +0100 Subject: Add make target libraries which checks for some missing dependencies and tries to install it. --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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." -- cgit v1.2.3