diff options
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') |