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:
Diego Nehab 2012-05-11 15:33:47 +08:00
parent 399bdb7f41
commit 05535a19f8
2 changed files with 21 additions and 11 deletions

View file

@ -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