aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile34
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 4datarootdir = $(prefix)/share
5prefix ?= /usr/local 5bindir = $(prefix)/bin
6datarootdir ?= $(prefix)/share 6sysconfdir = $(prefix)/etc
7bindir ?= $(prefix)/bin 7INSTALL = install
8sysconfdir ?= $(prefix)/etc 8INSTALL_DATA = $(INSTALL) -m 644
9INSTALL ?= install 9BINARY_PLATFORM = unix
10INSTALL_DATA ?= $(INSTALL) -m 644 10
11BINARY_PLATFORM ?= unix
12
13LUA_INTERPRETER ?= lua
14ifdef LUA_BINDIR
15LUA = $(LUA_BINDIR)/$(LUA_INTERPRETER)
16SHEBANG = \#!$(LUA_BINDIR)/$(LUA_INTERPRETER) 11SHEBANG = \#!$(LUA_BINDIR)/$(LUA_INTERPRETER)
17else 12LUA = $(LUA_BINDIR)/$(LUA_INTERPRETER)
18LUA = $(LUA_INTERPRETER) 13luarocksconfdir = $(sysconfdir)/luarocks
19SHEBANG = \#!/usr/bin/env $(LUA_INTERPRETER) 14luadir = $(datarootdir)/lua/$(LUA_VERSION)
20endif 15builddir = ./build
21LUA_VERSION ?= $(shell $(LUA) -e 'print(_VERSION:match(" (5%.[1234])$$"))') 16buildbinarydir = ./build-binary
22rocks_tree ?= $(prefix)
23luarocksconfdir ?= $(sysconfdir)/luarocks
24luadir ?= $(datarootdir)/lua/$(LUA_VERSION)
25builddir ?= ./build
26buildbinarydir ?= ./build-binary
27 17
28 18
29LUAROCKS_FILES = $(shell find src/luarocks/ -type f -name '*.lua') 19LUAROCKS_FILES = $(shell find src/luarocks/ -type f -name '*.lua')