2014-01-31 06:39:15 -07:00
|
|
|
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
|
2014-02-01 07:20:02 -07:00
|
|
|
build/src/vim: deps
|
2014-01-31 06:39:15 -07:00
|
|
|
cd build && make
|
|
|
|
|
2014-02-01 07:27:24 -07:00
|
|
|
test: build/src/vim
|
|
|
|
cd src/testdir && make
|
|
|
|
|
2014-02-01 07:20:02 -07:00
|
|
|
deps: .deps/usr/lib/libuv.a
|
|
|
|
|
|
|
|
.deps/usr/lib/libuv.a:
|
|
|
|
sh -e scripts/get-libuv.sh
|
|
|
|
|
|
|
|
cmake: clean
|
2014-01-31 06:39:15 -07:00
|
|
|
mkdir build
|
|
|
|
cd build && cmake $(CMAKE_FLAGS) ../
|
|
|
|
|
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
|
|
|
|
|
|
|
|
.PHONY: test deps cmake
|
2014-02-01 07:27:24 -07:00
|
|
|
|
|
|
|
.DEFAULT: build/src/vim
|