-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 985 Bytes
/
Copy pathMakefile
File metadata and controls
49 lines (37 loc) · 985 Bytes
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
# General Lua Libraries for Lua 5.1, 5.2 & 5.3
# Copyright (C) 2011-2018 stdlib authors
LDOC = ldoc
LUA = lua
MKDIR = mkdir -p
SED = sed
SPECL = specl
VERSION = git
luadir = lib/std
SOURCES = \
$(luadir)/_base.lua \
$(luadir)/debug.lua \
$(luadir)/init.lua \
$(luadir)/io.lua \
$(luadir)/math.lua \
$(luadir)/package.lua \
$(luadir)/string.lua \
$(luadir)/table.lua \
$(luadir)/version.lua \
$(NOTHING_ELSE)
all: doc
$(luadir)/version.lua: .FORCE
@echo 'return "General Lua libraries / $(VERSION)"' > '$@T'; \
if cmp -s '$@' '$@T'; then \
rm -f '$@T'; \
else \
echo 'echo return "General Lua libraries / $(VERSION)" > $@'; \
mv '$@T' '$@'; \
fi
doc: build-aux/config.ld $(SOURCES)
$(LDOC) -c build-aux/config.ld .
build-aux/config.ld: build-aux/config.ld.in
$(SED) -e "s,@PACKAGE_VERSION@,$(VERSION)," '$<' > '$@'
CHECK_ENV = LUA=$(LUA)
check:
LUA=$(LUA) $(SPECL) $(SPECL_OPTS) spec/*_spec.yaml
.FORCE: