-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
109 lines (84 loc) · 2.46 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Non-recursive Make rules.
#
# Copyright (C) 2013-2016 Gary V. Vaughan
# Written by Gary V. Vaughan, 2013
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
## ------------ ##
## Environment. ##
## ------------ ##
LUA_PATH ?= ;
LUA_CPATH ?= ;
SPECL_ENV =
CHECK_ENV =
INSTALLCHECK_ENV =
## ---------- ##
## Bootstrap. ##
## ---------- ##
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = $(LUA_INCLUDE)
## ------------- ##
## Declarations. ##
## ------------- ##
EXTRA_DIST =
EXTRA_LTLIBRARIES =
CLEANFILES =
DISTCLEANFILES =
MAINTAINERCLEANFILES =
NOTHING_ELSE =
bin_SCRIPTS =
check_local =
dist_bin_SCRIPTS =
dist_lua_DATA =
doc_DATA =
installcheck_local =
install_exec_hooks = remove-luaexec-lafiles
uninstall_hooks = uninstall-luaexec-modules
lib_LTLIBRARIES =
luaexec_LTLIBRARIES =
man_MANS =
save_release_files =
include local.mk
include build-aux/rockspecs.mk
## ------------ ##
## Local Tests. ##
## ------------ ##
check-local: $(check_local)
## ------------- ##
## Installation. ##
## ------------- ##
installcheck-local: $(installcheck_local)
install-exec-hook: $(install_exec_hooks)
# Neither Lua itself, nor LuaRocks can use .la files, and LuaRocks
# actually moves such files aside anyway, so we just remove them from
# the installation directory.
remove-luaexec-lafiles:
@for la in $(luaexec_LTLIBRARIES); do \
f=`echo "$$la" |sed 's|^.*/||'`; \
echo rm -f $(DESTDIR)$(luaexecdir)/$$f; \
rm -f $(DESTDIR)$(luaexecdir)/$$f; \
done
## --------------- ##
## Uninstallation. ##
## --------------- ##
uninstall-hook: $(uninstall_hooks)
# We removed the .la files from luaexecdir, so the standard uninstall,
# with libtool --mode=uninstall, can't find everything anymore.
uninstall-luaexec-modules:
@for la in $(luaexec_LTLIBRARIES); do \
base=`echo "$$la" \
|sed 's|^.*/\(.*\)\.la|\1|'`; \
echo rm -f $(DESTDIR)$(luaexecdir)/$$base.so; \
rm -f $(DESTDIR)$(luaexecdir)/$$base.so; \
done