Skip to content

Commit

Permalink
Merge pull request #38 from zevweiss/makefile
Browse files Browse the repository at this point in the history
Zev Weiss:
 - add tiny Makefile for building virtme-ng-init (useful when running virtme-ng from the source directory)
  • Loading branch information
Andrea Righi authored Nov 20, 2023
2 parents 4c65839 + 2179fbf commit 3e6e4bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: init
init:
cd virtme_ng_init && cargo install --path . --root ../virtme/guest
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ def run(self):
print(f"BUILD_VIRTME_NG_INIT: {build_virtme_ng_init}")
# Build virtme-ng-init
if build_virtme_ng_init:
check_call(
["cargo", "install", "--path", ".", "--root", "../virtme/guest"],
cwd="virtme_ng_init",
)
check_call(["make", "init"])
check_call(
["strip", "-s", "../virtme/guest/bin/virtme-ng-init"],
cwd="virtme_ng_init",
Expand Down

0 comments on commit 3e6e4bb

Please sign in to comment.