From dcb92d62681be91686b4b5211dbd419b95d81e06 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Fri, 17 Jun 2011 14:36:20 -0700 Subject: [PATCH] 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 --- config | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config b/config index 49958eb..62e52ef 100644 --- a/config +++ b/config @@ -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