forked from neovim/neovim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (30 loc) · 1005 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
37
38
39
40
41
42
43
44
45
-include local.mk
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=.deps/usr -DLibUV_USE_STATIC=YES
# Extra CMake flags which extend the default set
CMAKE_EXTRA_FLAGS :=
# For use where we want to make sure only a single job is run. This also avoids
# any warnings from the sub-make.
SINGLE_MAKE = export MAKEFLAGS= ; $(MAKE)
build/bin/nvim: deps
$(MAKE) -C build
test: build/bin/nvim
$(SINGLE_MAKE) -C src/testdir
unittest: build/bin/nvim
sh -e scripts/unittest.sh
deps: .deps/usr/lib/libuv.a .deps/usr/lib/libluajit-5.1.a .deps/usr/bin/busted
.deps/usr/lib/libuv.a:
sh -e scripts/compile-libuv.sh
.deps/usr/lib/libluajit-5.1.a:
sh -e scripts/compile-lua.sh
.deps/usr/bin/busted:
sh -e scripts/setup-test-tools.sh
cmake: clean deps
mkdir build
cd build && cmake $(CMAKE_FLAGS) $(CMAKE_EXTRA_FLAGS) ../
clean:
rm -rf build
$(MAKE) -C src/testdir clean
install: build/bin/nvim
$(MAKE) -C build install
.PHONY: test unittest deps cmake install
.DEFAULT: build/bin/nvim