neovim/Makefile
Rich Wareham 8aa1d8c71a Makefile: add .deps/ to CMake prefix path
The CMake prefix path is the set of directories CMake searches for
libraries, header files, etc. Use the .deps directory we create when
building libuv as one of those locations.
2014-02-26 07:08:44 -03:00

35 lines
638 B
Makefile

-include local.mk
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=.deps/usr
# Extra CMake flags which extend the default set
CMAKE_EXTRA_FLAGS :=
build/bin/nvim: deps
cd build && make
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
mkdir build
cd build && cmake $(CMAKE_FLAGS) $(CMAKE_EXTRA_FLAGS) ../
clean:
rm -rf build
for file in lua mbyte mzscheme small tiny; do \
rm -f src/testdir/$$file.vim; \
done
install: build/bin/nvim
cd build && make install
.PHONY: test deps cmake install
.DEFAULT: build/bin/nvim