From 911f7defa8145bff94e931859d295ff93f42b7fd Mon Sep 17 00:00:00 2001 From: Andrea D'Amore Date: Wed, 15 Feb 2012 19:01:23 +0100 Subject: [PATCH] Adding PHONY target to install, makes "install" target run on case insensitive filesystems with the "INSTALL" file present at the same level of Makefile. Add commodity variable to locally install Tir in user directory, either uncomment LUAROCKS_ARGS= or override it at make invokation. --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d53fdd8..887a8f4 100644 --- a/Makefile +++ b/Makefile @@ -4,20 +4,22 @@ SPEC_FILE=tir-${VERSION}-${REVISION}.rockspec TAR_FILE=tir-${VERSION}-${REVISION}.tar.gz SRC_ROCK=tir-${VERSION}-${REVISION}.src.rock EXAMPLES_FILE=tir-examples-${VERSION}-${REVISION}.tar.gz +#LUAROCKS_ARGS="--local" all: m2sh load -db tests/data/config.sqlite -config tests/data/mongrel2.conf tir test +.PHONY : install install: - luarocks install lua_signal + luarocks ${LUAROCKS_ARGS} install lua_signal curl -O https://raw.github.com/jsimmons/tnetstrings.lua/master/rockspecs/tnetstrings-scm-0.rockspec - luarocks install tnetstrings-scm-0.rockspec + luarocks ${LUAROCKS_ARGS} install tnetstrings-scm-0.rockspec rm tnetstrings-scm-0.rockspec curl -O https://raw.github.com/jsimmons/mongrel2-lua/master/rockspecs/mongrel2-lua-scm-0.rockspec - luarocks install mongrel2-lua-scm-0.rockspec + luarocks ${LUAROCKS_ARGS} install mongrel2-lua-scm-0.rockspec rm mongrel2-lua-scm-0.rockspec - luarocks install rockspec/tir-scm-0.rockspec + luarocks ${LUAROCKS_ARGS} install rockspec/tir-scm-0.rockspec build: rm -rf tmp