forked from ligurio/molly-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 764 Bytes
/
Makefile
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
# This way everything works as expected ever for
# `make -C /path/to/project` or
# `make -f /path/to/project/Makefile`.
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
PROJECT_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
ROCKS_BIN_DIR := $(tarantoolctl rocks config deploy_bin_dir)
ROCKS_BIN_DIR = $(PROJECT_DIR)/.rocks/bin/
all: test
deps:
@tarantoolctl rocks install luacheck 0.25.0
@tarantoolctl rocks install luatest
@tarantoolctl rocks install https://raw.githubusercontent.com/ligurio/molly/dev/molly-scm-1.rockspec
check: luacheck
luacheck:
@luacheck --config $(PROJECT_DIR)/.luacheckrc --codes $(PROJECT_DIR)
test:
@${ROCKS_BIN_DIR}/luatest --verbose -c test/
clean:
@rm -f ${CLEANUP_FILES}
.PHONY: luacheck check deps clean test