neovim/Makefile

42 lines
831 B
Makefile
Raw Normal View History

-include local.mk
2014-02-26 12:16:54 -07:00
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=.deps/usr -DLibUV_USE_STATIC=YES
# Extra CMake flags which extend the default set
2014-02-26 12:16:54 -07:00
CMAKE_EXTRA_FLAGS :=
build/bin/nvim: deps
${MAKE} -C build
test: build/bin/nvim
2014-02-01 07:27:24 -07:00
cd src/testdir && make
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
2014-02-01 07:20:02 -07:00
.deps/usr/lib/libuv.a:
sh -e scripts/compile-libuv.sh
2014-02-01 07:20:02 -07:00
.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) ../
2014-02-01 07:20:02 -07:00
clean:
rm -rf build
2014-02-26 17:33:39 -07:00
cd src/testdir && make clean
2014-02-01 07:20:02 -07:00
install: build/bin/nvim
${MAKE} -C build install
.PHONY: test deps cmake install
2014-02-01 07:27:24 -07:00
.DEFAULT: build/bin/nvim