diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9f702b2 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +.PHONY: init +init: + cd virtme_ng_init && cargo install --path . --root ../virtme/guest diff --git a/setup.py b/setup.py index 9d3f299..cc7cf7e 100755 --- a/setup.py +++ b/setup.py @@ -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",