Support the conventional DESTDIR and prefix variables

Many packaging systems rely on them, they are described here:
- http://www.gnu.org/prep/standards/standards.html#index-prefix
- http://www.gnu.org/prep/standards/standards.html#DESTDIR
This commit is contained in:
Sam Roberts 2011-06-17 14:36:20 -07:00
parent e3e0dee639
commit dcb92d6268

10
config
View File

@ -27,11 +27,15 @@ UNIX_SO=unix.$(EXT)
#------
# Top of your Lua installation
# Relative paths will be inside the src tree
#
DESTDIR=
prefix=/usr/local
top=$(DESTDIR)$(prefix)
#INSTALL_TOP_SHARE=/usr/local/share/lua/5.0
#INSTALL_TOP_LIB=/usr/local/lib/lua/5.0
INSTALL_TOP_SHARE=/usr/local/share/lua/5.1
INSTALL_TOP_LIB=/usr/local/lib/lua/5.1
INSTALL_TOP_SHARE=$(top)/share/lua/5.1
INSTALL_TOP_LIB=$(top)/lib/lua/5.1
INSTALL_DATA=cp
INSTALL_EXEC=cp