-
Notifications
You must be signed in to change notification settings - Fork 320
/
Makefile
36 lines (30 loc) · 837 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
29
30
31
32
33
34
35
36
# SPDX-FileCopyrightText: Copyright 2022-present Greg Hurrell and contributors.
# SPDX-License-Identifier: BSD-2-Clause
LUA_DIR = lua/wincent/commandt/lib
RUBY_DIR = ruby/command-t/ext/command-t
.PHONY: build
build:
$(MAKE) -C $(LUA_DIR)
(cd $(RUBY_DIR) && ruby extconf.rb)
$(MAKE) -C $(RUBY_DIR)
.PHONY: check
check:
$(MAKE) clean build test
bin/check-format
bin/check-tag
.PHONY: help
help:
@echo "make build compile"
@echo "make check run prerelease checks (clean, build, run tests, check style, check tag)"
@echo "make clean remove build artifacts"
@echo "make help show this help"
@echo "make test run tests"
.PHONY: test
test:
bin/spec
bin/test
.PHONY: clean
clean:
$(MAKE) -C $(LUA_DIR) clean
if test -f $(RUBY_DIR)/Makefile; then $(MAKE) -C $(RUBY_DIR) clean; fi
rm -f $(RUBY_DIR)/Makefile