-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 1021 Bytes
/
Makefile
File metadata and controls
50 lines (36 loc) · 1021 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
50
# Prototype Oriented Programming with Lua
# Copyright (C) 2002-2022 std.prototype authors
LDOC = ldoc
LUA = lua
MKDIR = mkdir -p
SED = sed
SPECL = specl
VERSION = git
luadir = lib/std/prototype
SOURCES = \
$(luadir)/_base.lua \
$(luadir)/container.lua \
$(luadir)/init.lua \
$(luadir)/object.lua \
$(luadir)/set.lua \
$(luadir)/strbuf.lua \
$(luadir)/trie.lua \
$(luadir)/version.lua \
$(NOTHING_ELSE)
all: doc $(luadir)/version.lua
$(luadir)/version.lua: .FORCE
@echo 'return "Prototype Object Libraries / $(VERSION)"' > '$@T'; \
if cmp -s '$@' '$@T'; then \
rm -f '$@T'; \
else \
echo 'echo return "Prototype Object 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: $(SOURCES)
LUA=$(LUA) $(SPECL) $(SPECL_OPTS) spec/*_spec.yaml
.FORCE: