aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Wareham <rjw57@cam.ac.uk>2014-02-25 00:04:51 +0000
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-25 13:20:14 -0300
commitcf3322f8c2dc3c7a0a366546de0a6a25921d7165 (patch)
tree16c3627fd56d5ff3340f6af35f6741ec9851067d
parent4961654a2ab5c746920d4f9c40eda662dfe19cc3 (diff)
downloadrneovim-cf3322f8c2dc3c7a0a366546de0a6a25921d7165.tar.gz
rneovim-cf3322f8c2dc3c7a0a366546de0a6a25921d7165.tar.bz2
rneovim-cf3322f8c2dc3c7a0a366546de0a6a25921d7165.zip
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.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 29966619e6..cfb1d15a13 100644
--- a/Makefile
+++ b/Makefile
@@ -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