diff options
| author | Sam Roberts <vieuxtech@gmail.com> | 2011-06-17 14:36:20 -0700 |
|---|---|---|
| committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:45:58 -0700 |
| commit | dcb92d62681be91686b4b5211dbd419b95d81e06 (patch) | |
| tree | b21bd83e3b93cb4a49dafad86f82cd8af07da82c | |
| parent | e3e0dee639309b0496b3955051269fddbd397675 (diff) | |
| download | luasocket-dcb92d62681be91686b4b5211dbd419b95d81e06.tar.gz luasocket-dcb92d62681be91686b4b5211dbd419b95d81e06.tar.bz2 luasocket-dcb92d62681be91686b4b5211dbd419b95d81e06.zip | |
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
| -rw-r--r-- | config | 10 |
1 files changed, 7 insertions, 3 deletions
| @@ -27,11 +27,15 @@ UNIX_SO=unix.$(EXT) | |||
| 27 | #------ | 27 | #------ |
| 28 | # Top of your Lua installation | 28 | # Top of your Lua installation |
| 29 | # Relative paths will be inside the src tree | 29 | # Relative paths will be inside the src tree |
| 30 | # | 30 | |
| 31 | DESTDIR= | ||
| 32 | prefix=/usr/local | ||
| 33 | top=$(DESTDIR)$(prefix) | ||
| 34 | |||
| 31 | #INSTALL_TOP_SHARE=/usr/local/share/lua/5.0 | 35 | #INSTALL_TOP_SHARE=/usr/local/share/lua/5.0 |
| 32 | #INSTALL_TOP_LIB=/usr/local/lib/lua/5.0 | 36 | #INSTALL_TOP_LIB=/usr/local/lib/lua/5.0 |
| 33 | INSTALL_TOP_SHARE=/usr/local/share/lua/5.1 | 37 | INSTALL_TOP_SHARE=$(top)/share/lua/5.1 |
| 34 | INSTALL_TOP_LIB=/usr/local/lib/lua/5.1 | 38 | INSTALL_TOP_LIB=$(top)/lib/lua/5.1 |
| 35 | 39 | ||
| 36 | INSTALL_DATA=cp | 40 | INSTALL_DATA=cp |
| 37 | INSTALL_EXEC=cp | 41 | INSTALL_EXEC=cp |
