neovim/Makefile
Rich Wareham 0a15feee9d Makefile: allow configuration of CMake flags
Although CMAKE_FLAGS was already a Makefile variable, it didn't have an
empty default value meaning that extending the flags to CMake in a clean
way was difficult. Add a CMAKE_EXTRA_FLAGS variable which is appended to
the default flags.
2014-02-25 13:20:14 -03:00

35 lines
604 B
Makefile

-include local.mk
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug
# 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/get-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