Make installer compile on host, list_packages compile in Podman when PODMAN_BUILD=1
This commit is contained in:
parent
61a4f0ab6c
commit
f51dee2ea1
1 changed files with 108 additions and 18 deletions
|
|
@ -2,17 +2,21 @@
|
|||
|
||||
fstools: $(FSTOOLS_TAG)
|
||||
|
||||
## The installer runs on the host, even when using Podman build
|
||||
$(FSTOOLS_TAG): cookbook installer redoxfs $(CONTAINER_TAG)
|
||||
ifeq ($(PODMAN_BUILD),1)
|
||||
$(PODMAN_RUN) $(MAKE) $@
|
||||
else
|
||||
$(HOST_CARGO) build --manifest-path cookbook/Cargo.toml --release
|
||||
$(HOST_CARGO) build --manifest-path installer/Cargo.toml --release
|
||||
$(HOST_CARGO) build --bin list_packages --manifest-path installer/Cargo.toml --release
|
||||
$(HOST_CARGO) build --manifest-path redoxfs/Cargo.toml --release --bin redoxfs --bin redoxfs-mkfs
|
||||
mkdir -p build
|
||||
touch $@
|
||||
endif
|
||||
|
||||
$(INSTALLER): installer
|
||||
$(HOST_CARGO) build --bin redox_installer --manifest-path installer/Cargo.toml --release
|
||||
|
||||
fstools_clean: FORCE $(CONTAINER_TAG)
|
||||
ifeq ($(PODMAN_BUILD),1)
|
||||
$(PODMAN_RUN) $(MAKE) $@
|
||||
|
|
|
|||
Loading…
Reference in a new issue