diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-11 00:31:53 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-11 01:24:12 -0300 |
commit | b3869ba11a504e603eb585a632e80dbfc1830207 (patch) | |
tree | fb8e63c6b1258e72e700e36e6be82fe25e3d60d9 /GNUmakefile | |
parent | 958d431a09b2ad0a5137695488692a14c9e533d6 (diff) | |
download | luarocks-b3869ba11a504e603eb585a632e80dbfc1830207.tar.gz luarocks-b3869ba11a504e603eb585a632e80dbfc1830207.tar.bz2 luarocks-b3869ba11a504e603eb585a632e80dbfc1830207.zip |
configure, make: reduce moving parts
* Do not set again variables that were set in config.unix
* Do not re-detect the Lua version after configure already did it
* Remove --luarocksconfdir, use --sysconfdir only
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/GNUmakefile b/GNUmakefile index 90ceaf87..a2a13e04 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
@@ -1,29 +1,19 @@ | |||
1 | 1 | ||
2 | -include config.unix | 2 | -include config.unix |
3 | 3 | ||
4 | # See https://www.gnu.org/software/make/manual/html_node/Makefile-Conventions.html | 4 | datarootdir = $(prefix)/share |
5 | prefix ?= /usr/local | 5 | bindir = $(prefix)/bin |
6 | datarootdir ?= $(prefix)/share | 6 | sysconfdir = $(prefix)/etc |
7 | bindir ?= $(prefix)/bin | 7 | INSTALL = install |
8 | sysconfdir ?= $(prefix)/etc | 8 | INSTALL_DATA = $(INSTALL) -m 644 |
9 | INSTALL ?= install | 9 | BINARY_PLATFORM = unix |
10 | INSTALL_DATA ?= $(INSTALL) -m 644 | 10 | |
11 | BINARY_PLATFORM ?= unix | ||
12 | |||
13 | LUA_INTERPRETER ?= lua | ||
14 | ifdef LUA_BINDIR | ||
15 | LUA = $(LUA_BINDIR)/$(LUA_INTERPRETER) | ||
16 | SHEBANG = \#!$(LUA_BINDIR)/$(LUA_INTERPRETER) | 11 | SHEBANG = \#!$(LUA_BINDIR)/$(LUA_INTERPRETER) |
17 | else | 12 | LUA = $(LUA_BINDIR)/$(LUA_INTERPRETER) |
18 | LUA = $(LUA_INTERPRETER) | 13 | luarocksconfdir = $(sysconfdir)/luarocks |
19 | SHEBANG = \#!/usr/bin/env $(LUA_INTERPRETER) | 14 | luadir = $(datarootdir)/lua/$(LUA_VERSION) |
20 | endif | 15 | builddir = ./build |
21 | LUA_VERSION ?= $(shell $(LUA) -e 'print(_VERSION:match(" (5%.[1234])$$"))') | 16 | buildbinarydir = ./build-binary |
22 | rocks_tree ?= $(prefix) | ||
23 | luarocksconfdir ?= $(sysconfdir)/luarocks | ||
24 | luadir ?= $(datarootdir)/lua/$(LUA_VERSION) | ||
25 | builddir ?= ./build | ||
26 | buildbinarydir ?= ./build-binary | ||
27 | 17 | ||
28 | 18 | ||
29 | LUAROCKS_FILES = $(shell find src/luarocks/ -type f -name '*.lua') | 19 | LUAROCKS_FILES = $(shell find src/luarocks/ -type f -name '*.lua') |