use absoluate paths in Makefile to prevent -jN chaos when using bsdmake. released ngx_openresty 1.0.4.2rc11.

This commit is contained in:
agentzh (章亦春) 2011-08-08 09:27:06 +08:00
parent dd2d1d04b8
commit 5aa4947cb1
3 changed files with 106 additions and 103 deletions

View File

@ -200,7 +200,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -215,12 +215,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -249,7 +249,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -264,12 +264,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -306,7 +306,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -322,12 +322,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -355,7 +355,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -371,12 +371,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -403,7 +403,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -419,12 +419,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -466,12 +466,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install TARGET_STRIP=@: PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -506,10 +506,10 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -536,7 +536,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -551,12 +551,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/opt/blah/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/opt/blah/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -753,7 +753,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -768,12 +768,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) solaris cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) solaris
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -801,7 +801,7 @@ cd nginx-1.0.4
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.1.1rc3 \ --add-module=../drizzle-nginx-module-0.1.1rc3 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -816,12 +816,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) solaris cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) solaris
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -849,7 +849,7 @@ cd nginx-1.0.4
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.1.1rc3 \ --add-module=../drizzle-nginx-module-0.1.1rc3 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -864,12 +864,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) solaris cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) solaris
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -909,7 +909,7 @@ cd nginx-1.0.4
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../drizzle-nginx-module-0.1.1rc3 \ --add-module=../drizzle-nginx-module-0.1.1rc3 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -926,12 +926,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -958,7 +958,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -973,12 +973,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) CC=gcc-4.2 solaris cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) CC=gcc-4.2 solaris
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install CC=gcc-4.2 INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install CC=gcc-4.2 INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -1007,7 +1007,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -1023,12 +1023,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) install CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install CCDEBUG=-g Q= PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -1057,7 +1057,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -1073,12 +1073,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/LuaJIT-2.0.0-beta8 && $(MAKE) install CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/LuaJIT-2.0.0-beta8 && $(MAKE) install CCDEBUG=-g Q= CC=cl PREFIX=/usr/local/openresty/luajit DESTDIR=$(DESTDIR)
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -1118,7 +1118,7 @@ cd nginx-1.0.4
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_postgres-0.9rc1 \ --add-module=../ngx_postgres-0.9rc1 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -1135,12 +1135,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -1168,7 +1168,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -1183,12 +1183,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -1197,7 +1197,7 @@ clean:
=== TEST 23: --with-libpq & --with-pg_config === TEST 23: --with-libpq & --with-pg_config
--- cmd: ./configure --with-libpq=/foo/bar --with-pg_config=/baz --- cmd: ./configure --with-libpq=/foo/bar --with-pg_config=/baz
--- exit: 255 --- exit: 9
--- err --- err
--with-pg_config is not allowed when --with-libpq is already specified. --with-pg_config is not allowed when --with-libpq is already specified.
--- out --- out
@ -1206,7 +1206,7 @@ clean:
=== TEST 24: --with-pg_config & --with-libpq === TEST 24: --with-pg_config & --with-libpq
--- cmd: ./configure --with-pg_config=/baz --with-libpq=/foo/bar --- cmd: ./configure --with-pg_config=/baz --with-libpq=/foo/bar
--- exit: 255 --- exit: 9
--- err --- err
--with-libpq is not allowed when --with-pg_config is already specified. --with-libpq is not allowed when --with-pg_config is already specified.
--- out --- out
@ -1236,7 +1236,7 @@ cd nginx-1.0.4
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_postgres-0.9rc1 \ --add-module=../ngx_postgres-0.9rc1 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -1253,12 +1253,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build
@ -1283,9 +1283,9 @@ cp -rp bundle/ build/
cd build cd build
cd lua-5.1.4 cd lua-5.1.4
make linux make linux
make install INSTALL_TOP=/home/agentz/git/ngx_openresty/ngx_openresty-1.0.4.2rc8/build/lua-root/usr/local/openresty/lua make install INSTALL_TOP=/home/agentz/git/ngx_openresty/ngx_openresty-1.0.4.2rc11/build/lua-root/usr/local/openresty/lua
export LUA_LIB='/home/agentz/git/ngx_openresty/ngx_openresty-1.0.4.2rc8/build/lua-root/usr/local/openresty/lua/lib' export LUA_LIB='/home/agentz/git/ngx_openresty/ngx_openresty-1.0.4.2rc11/build/lua-root/usr/local/openresty/lua/lib'
export LUA_INC='/home/agentz/git/ngx_openresty/ngx_openresty-1.0.4.2rc8/build/lua-root/usr/local/openresty/lua/include' export LUA_INC='/home/agentz/git/ngx_openresty/ngx_openresty-1.0.4.2rc11/build/lua-root/usr/local/openresty/lua/include'
cd .. cd ..
cd nginx-1.0.4 cd nginx-1.0.4
./configure --prefix=/usr/local/openresty/nginx \ ./configure --prefix=/usr/local/openresty/nginx \
@ -1295,7 +1295,7 @@ cd nginx-1.0.4
--add-module=../set-misc-nginx-module-0.22rc2 \ --add-module=../set-misc-nginx-module-0.22rc2 \
--add-module=../form-input-nginx-module-0.07rc5 \ --add-module=../form-input-nginx-module-0.07rc5 \
--add-module=../encrypted-session-nginx-module-0.01 \ --add-module=../encrypted-session-nginx-module-0.01 \
--add-module=../ngx_lua-0.2.1rc3 \ --add-module=../ngx_lua-0.2.1rc4 \
--add-module=../headers-more-nginx-module-0.15 \ --add-module=../headers-more-nginx-module-0.15 \
--add-module=../srcache-nginx-module-0.12 \ --add-module=../srcache-nginx-module-0.12 \
--add-module=../array-var-nginx-module-0.03rc1 \ --add-module=../array-var-nginx-module-0.03rc1 \
@ -1311,12 +1311,12 @@ cd ../..
.PHONY: all install clean .PHONY: all install clean
all: all:
cd build/lua-5.1.4 && $(MAKE) linux cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) linux
cd build/nginx-1.0.4 && $(MAKE) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE)
install: install:
cd build/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua cd $OPENRESTY_BUILD_DIR/lua-5.1.4 && $(MAKE) install INSTALL_TOP=$(DESTDIR)/usr/local/openresty/lua
cd build/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR) cd $OPENRESTY_BUILD_DIR/nginx-1.0.4 && $(MAKE) install DESTDIR=$(DESTDIR)
clean: clean:
rm -rf build rm -rf build

15
util/configure vendored
View File

@ -14,6 +14,9 @@ sub usage ($);
my (@make_cmds, @make_install_cmds); my (@make_cmds, @make_install_cmds);
my $root_dir = `pwd`;
chomp $root_dir;
my $OS = $^O; my $OS = $^O;
my $ngx_dir; my $ngx_dir;
@ -217,10 +220,10 @@ my $cmd = "./configure --prefix=$ngx_prefix"
shell $cmd, $dry_run; shell $cmd, $dry_run;
push @make_cmds, "cd build/$ngx_dir && " push @make_cmds, "cd $root_dir/build/$ngx_dir && "
. "\$(MAKE)"; . "\$(MAKE)";
push @make_install_cmds, "cd build/$ngx_dir && " push @make_install_cmds, "cd $root_dir/build/$ngx_dir && "
. "\$(MAKE) install DESTDIR=\$(DESTDIR)"; . "\$(MAKE) install DESTDIR=\$(DESTDIR)";
cd '../..'; # to the root cd '../..'; # to the root
@ -427,10 +430,10 @@ sub build_resty_opts {
shell "${make} install$extra_opts PREFIX=$luajit_prefix DESTDIR=$luajit_root", $dry_run; shell "${make} install$extra_opts PREFIX=$luajit_prefix DESTDIR=$luajit_root", $dry_run;
push @make_cmds, "cd build/$luajit_src && " push @make_cmds, "cd $root_dir/build/$luajit_src && "
. "\$(MAKE)$extra_opts PREFIX=$luajit_prefix"; . "\$(MAKE)$extra_opts PREFIX=$luajit_prefix";
push @make_install_cmds, "cd build/$luajit_src && " push @make_install_cmds, "cd $root_dir/build/$luajit_src && "
. "\$(MAKE) install$extra_opts PREFIX=$luajit_prefix DESTDIR=\$(DESTDIR)"; . "\$(MAKE) install$extra_opts PREFIX=$luajit_prefix DESTDIR=\$(DESTDIR)";
env LUAJIT_LIB => "$luajit_root$luajit_prefix/lib"; env LUAJIT_LIB => "$luajit_root$luajit_prefix/lib";
@ -472,9 +475,9 @@ sub build_resty_opts {
env LUA_LIB => "$lua_root$lua_prefix/lib"; env LUA_LIB => "$lua_root$lua_prefix/lib";
env LUA_INC => "$lua_root$lua_prefix/include"; env LUA_INC => "$lua_root$lua_prefix/include";
push @make_cmds, "cd build/$lua_src && \$(MAKE)$extra_opts $platform"; push @make_cmds, "cd $root_dir/build/$lua_src && \$(MAKE)$extra_opts $platform";
push @make_install_cmds, "cd build/$lua_src && " push @make_install_cmds, "cd $root_dir/build/$lua_src && "
. "\$(MAKE) install$extra_opts INSTALL_TOP=\$(DESTDIR)$lua_prefix"; . "\$(MAKE) install$extra_opts INSTALL_TOP=\$(DESTDIR)$lua_prefix";
cd '..'; cd '..';

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
main_ver=1.0.4 main_ver=1.0.4
minor_ver=2rc10 minor_ver=2rc11
version=$main_ver.$minor_ver version=$main_ver.$minor_ver
echo $version echo $version