blob: 0f26bffa6f071e7d48324800ae72717ffb90c5f7 (
plain)
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
|
UMASK=022
all: doc build
build:
umask $(UMASK) && luarocks --pack-binary-rock make
build-dbg:
umask $(UMASK) && luarocks --pack-binary-rock CFLAGS='-g -O0 -fPIC -std=c99 -Wall' make
check: build-dbg
make -C ./test
check-valgrind: build-dbg
make RUNCMD="valgrind --tool=memcheck --leak-check=full --error-exitcode=1" check -C ./test
doc:
rm -rf ./doc
lua ./tools/ldoc/ldoc.lua -d ./doc -c ./config.ld ejdb.luadoc
clean:
- rm -f *.so *.rock ./ejdb/*.so
- make -C ./test clean
install:
$(if $(DESTDIR), $(MAKE) install-deb, $(MAKE) install-ndeb)
install-deb:
install -d $(DESTDIR)/usr
umask $(UMASK) && luarocks --tree=$(DESTDIR)/usr make
install-ndeb:
umask $(UMASK) && luarocks make
deb-packages: clean
debuild --no-tgz-check $(DEBUILD_OPTS)
.PHONY: all build build-dbg check check-valgrind clean doc install install-ndeb install-deb
|