makefile: add a install option
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 10 Mar 2021 13:54:13 +0100
changeset 46753 99c0b03894ee
parent 46752 a20674f2055c
child 46754 9ba00a9dc6ea
makefile: add a install option This gives and easy way to install rhg that we can use in `run-test.py` in the next changesets. Differential Revision: https://phab.mercurial-scm.org/D10194
Makefile
--- a/Makefile	Wed Mar 10 13:54:00 2021 +0100
+++ b/Makefile	Wed Mar 10 13:54:13 2021 +0100
@@ -116,6 +116,9 @@
 install-home-doc: doc
 	cd doc && $(MAKE) $(MFLAGS) PREFIX="$(HOME)" install
 
+install-rhg: build-rhg
+	install -m 755 rust/target/release/rhg "$(PREFIX)"/bin/
+
 MANIFEST-doc:
 	$(MAKE) -C doc MANIFEST