Skip to content

Commit 91a307c

Browse files
committed
Makefile: Add required dependencies
Some of the targets rely on others but weren't actually listed: - init relies on containerization as it invokes cctl. - integration relies on init as it needs the rootfs with vminitd inside.
1 parent 63a56b8 commit 91a307c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ containerization:
5454
@codesign --force --sign - --timestamp=none --entitlements=signing/vz.entitlements bin/containerization-integration
5555

5656
.PHONY: init
57-
init: vminitd
57+
init: containerization vminitd
5858
@echo Creating init.ext4...
5959
@rm -f bin/init.rootfs.tar.gz bin/init.block
6060
@./bin/cctl rootfs create --vminitd vminitd/bin/vminitd --labels org.opencontainers.image.source=https://github.com/apple/containerization --vmexec vminitd/bin/vmexec bin/init.rootfs.tar.gz vminit:latest
@@ -83,7 +83,7 @@ test:
8383
@$(SWIFT) test --enable-code-coverage
8484

8585
.PHONY: integration
86-
integration:
86+
integration: init
8787
ifeq (,$(wildcard bin/vmlinux))
8888
@echo No bin/vmlinux kernel found. See fetch-default-kernel target.
8989
@exit 1

0 commit comments

Comments
 (0)