2014-02-25 07:55:36 -07:00
|
|
|
-include local.mk
|
|
|
|
|
2014-02-24 13:56:00 -07:00
|
|
|
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=.deps/usr
|
2014-01-31 06:39:15 -07:00
|
|
|
|
2014-02-24 17:22:48 -07:00
|
|
|
# Extra CMake flags which extend the default set
|
|
|
|
CMAKE_EXTRA_FLAGS :=
|
|
|
|
|
2014-02-24 12:57:47 -07:00
|
|
|
build/bin/nvim: deps
|
2014-01-31 06:39:15 -07:00
|
|
|
cd build && make
|
|
|
|
|
2014-02-24 12:57:47 -07:00
|
|
|
test: build/bin/nvim
|
2014-02-01 07:27:24 -07:00
|
|
|
cd src/testdir && make
|
|
|
|
|
2014-02-01 07:20:02 -07:00
|
|
|
deps: .deps/usr/lib/libuv.a
|
|
|
|
|
|
|
|
.deps/usr/lib/libuv.a:
|
2014-02-24 03:04:42 -07:00
|
|
|
sh -e scripts/compile-libuv.sh
|
2014-02-01 07:20:02 -07:00
|
|
|
|
2014-02-24 14:00:39 -07:00
|
|
|
cmake: clean deps
|
2014-01-31 06:39:15 -07:00
|
|
|
mkdir build
|
2014-02-24 17:22:48 -07:00
|
|
|
cd build && cmake $(CMAKE_FLAGS) $(CMAKE_EXTRA_FLAGS) ../
|
2014-01-31 06:39:15 -07:00
|
|
|
|
2014-02-01 07:20:02 -07:00
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
for file in lua mbyte mzscheme small tiny; do \
|
|
|
|
rm -f src/testdir/$$file.vim; \
|
|
|
|
done
|
|
|
|
|
2014-02-24 17:04:51 -07:00
|
|
|
install: build/bin/nvim
|
|
|
|
cd build && make install
|
|
|
|
|
|
|
|
.PHONY: test deps cmake install
|
2014-02-01 07:27:24 -07:00
|
|
|
|
2014-02-24 12:57:47 -07:00
|
|
|
.DEFAULT: build/bin/nvim
|