mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
33 lines
607 B
Makefile
33 lines
607 B
Makefile
-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 :=
|
|
|
|
build/bin/nvim: deps
|
|
${MAKE} -C build
|
|
|
|
test: build/bin/nvim
|
|
cd src/testdir && make
|
|
|
|
deps: .deps/usr/lib/libuv.a
|
|
|
|
.deps/usr/lib/libuv.a:
|
|
sh -e scripts/compile-libuv.sh
|
|
|
|
cmake: clean deps
|
|
mkdir build
|
|
cd build && cmake $(CMAKE_FLAGS) $(CMAKE_EXTRA_FLAGS) ../
|
|
|
|
clean:
|
|
rm -rf build
|
|
cd src/testdir && make clean
|
|
|
|
install: build/bin/nvim
|
|
${MAKE} -C build install
|
|
|
|
.PHONY: test deps cmake install
|
|
|
|
.DEFAULT: build/bin/nvim
|