Updated to take lua as a parameter to make.
This commit is contained in:
parent
5074828c3d
commit
e1677d2195
13
Makefile
13
Makefile
@ -1,7 +1,6 @@
|
|||||||
# makefile for immutable table library for Lua
|
# makefile for immutable table library for Lua
|
||||||
|
# usage: make LUA=/path/to/lua
|
||||||
|
|
||||||
# change these to reflect your Lua installation
|
|
||||||
LUA= /users/Bruce/Sandbox/Lua/lua-5.3.4
|
|
||||||
LUAINC= $(LUA)/src
|
LUAINC= $(LUA)/src
|
||||||
LUALIB= $(LUA)/src
|
LUALIB= $(LUA)/src
|
||||||
LUABIN= $(LUA)/src
|
LUABIN= $(LUA)/src
|
||||||
@ -38,13 +37,19 @@ so: $T
|
|||||||
$T: $(OBJS)
|
$T: $(OBJS)
|
||||||
$(MAKESO) -o $@ $(OBJS)
|
$(MAKESO) -o $@ $(OBJS)
|
||||||
|
|
||||||
$(OBJS): limmutable.c
|
$(OBJS): check-lua limmutable.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS) $T core core.*
|
rm -f $(OBJS) $T lua_path core core.*
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
@echo "$(MYNAME) library:"
|
@echo "$(MYNAME) library:"
|
||||||
@fgrep '/**' $(MYLIB).c | cut -f2 -d/ | tr -d '*' | sort | column
|
@fgrep '/**' $(MYLIB).c | cut -f2 -d/ | tr -d '*' | sort | column
|
||||||
|
|
||||||
|
check-lua:
|
||||||
|
@if [ "$(LUA)" = "" ]; then \
|
||||||
|
echo "usage: make LUA=/path/to/lua"; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
# eof
|
# eof
|
||||||
|
Loading…
Reference in New Issue
Block a user