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