Patchwork D10193: makefile: add a build-rhg option

login
register
mail settings
Submitter phabricator
Date March 12, 2021, 10:09 p.m.
Message ID <differential-rev-PHID-DREV-axxg6v7b2nje7e5g23hq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48506/
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 an easy action to build the rhg-binary. This will be useful for the
  `install-rhg` action in the next changeset.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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
@@ -71,6 +71,9 @@ 
 build-chg:
 	make -C contrib/chg
 
+build-rhg:
+	(cd rust/rhg; cargo build --release)
+
 wheel:
 	FORCE_SETUPTOOLS=1 $(PYTHON) setup.py $(PURE) bdist_wheel $(COMPILERFLAG)