Improve makefile to allow overriden variables
Before this change, it was difficult to set default directories for different platforms that would still work with different Lua versions.
This commit is contained in:
parent
399bdb7f41
commit
05535a19f8
2 changed files with 21 additions and 11 deletions
4
makefile
4
makefile
|
@ -23,10 +23,10 @@ test:
|
|||
lua test/hello.lua
|
||||
|
||||
install-both:
|
||||
touch src/*.c
|
||||
$(MAKE) clean
|
||||
@cd src; $(MAKE) $(PLAT) LUAV=5.1
|
||||
@cd src; $(MAKE) install-unix LUAV=5.1
|
||||
touch src/*.c
|
||||
$(MAKE) clean
|
||||
@cd src; $(MAKE) $(PLAT) LUAV=5.2
|
||||
@cd src; $(MAKE) install-unix LUAV=5.2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue