Makefile: add install target

This simply calls the install target in the build directory. IMHO I
think it's looking a bit hacky having a separate Makefile target to do
this rather than using the usual CMake workflow but mine is not to
reason why... [Also, I've copied ``cd build && make ...`` although I'm
sure ``$MAKE -C build/ ...`` is probably the Right Thing (TM).]

Note that you'll have to set CMAKE_INSTALL_PREFIX on the cmake command
line to change where this installs to.
This commit is contained in:
Rich Wareham 2014-02-25 00:04:51 +00:00 committed by Thiago de Arruda
parent 4961654a2a
commit cf3322f8c2

View File

@ -23,6 +23,9 @@ clean:
rm -f src/testdir/$$file.vim; \
done
.PHONY: test deps cmake
install: build/bin/nvim
cd build && make install
.PHONY: test deps cmake install
.DEFAULT: build/bin/nvim