Patchwork D10194: makefile: add a install option

login
register
mail settings
Submitter phabricator
Date March 12, 2021, 10:09 p.m.
Message ID <differential-rev-PHID-DREV-2qepbor6n7vjkuscxjdj-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48507/
State Superseded
Headers show

Comments

phabricator - March 12, 2021, 10:09 p.m.
SimonSapin created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This gives and easy way to install rhg that we can use in `run-test.py` in the
  next changesets.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10194

AFFECTED FILES
  Makefile

CHANGE DETAILS




To: SimonSapin, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -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