From c1e2cf861691b467a981c6f5b67cefb43c28edc9 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 22 Sep 2009 15:39:22 +0000 Subject: [PATCH] fixed LUA_INCLUDE to LUAINCLUDE in Makefile git-svn-id: svn://anubis/anaglym/trunk@26 99a6e188-d820-4881-8870-2d33a10e2619 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9e1c0aa..745b573 100644 --- a/Makefile +++ b/Makefile @@ -7,11 +7,11 @@ CDEPS := $(COBJS:.o=.dep) CXXDEPS := $(CXXOBJS:.o=.dep) DEPS := $(CDEPS) $(CXXDEPS) -LUAINCLUDE := $(shell which lua-config >/dev/null 2>&1; if [ $$? == 0 ]; then lua-config --include; fi) -ifeq ($(strip $(LUA_INCLUDE)),) +LUAINCLUDE := $(shell which lua-config >/dev/null 2>&1; if [ $$? -eq 0 ]; then lua-config --include; fi) +ifeq ($(strip $(LUAINCLUDE)),) LUAINCLUDE := -I/usr/include/lua5.1 endif -LUALIBS := $(shell which lua-config >/dev/null 2>&1; if [ $$? == 0 ]; then lua-config --libs; fi) +LUALIBS := $(shell which lua-config >/dev/null 2>&1; if [ $$? -eq 0 ]; then lua-config --libs; fi) ifeq ($(strip $(LUALIBS)),) LUALIBS := -llua5.1 endif