mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 04:14:17 +08:00
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
# Configuration file for redox-installer, Cookbook and RedoxFS FUSE
|
|
|
|
fstools: $(FSTOOLS_TAG) $(HOST_FSTOOLS)
|
|
|
|
# These tools run inside Podman if it is used, or on the host if Podman is not used
|
|
$(FSTOOLS_TAG): cookbook installer $(CONTAINER_TAG)
|
|
ifeq ($(PODMAN_BUILD),1)
|
|
$(PODMAN_RUN) make $@
|
|
else
|
|
$(HOST_CARGO) build --manifest-path cookbook/Cargo.toml --release
|
|
$(HOST_CARGO) build --manifest-path cookbook/pkgar/Cargo.toml --release
|
|
$(HOST_CARGO) build --manifest-path installer/Cargo.toml --bin list_packages --release
|
|
mkdir -p build
|
|
touch $@
|
|
endif
|
|
|
|
## The installer and redoxfs run on the host, even when using Podman build
|
|
$(HOST_FSTOOLS): installer redoxfs
|
|
rm -rf $@ $@.partial
|
|
mkdir -p $@.partial
|
|
$(HOST_CARGO) install --root $@.partial --path installer --bin redox_installer
|
|
$(HOST_CARGO) install --root $@.partial --path redoxfs --bin redoxfs --bin redoxfs-mkfs
|
|
mv $@.partial $@
|
|
touch $@
|
|
|
|
fstools_clean: FORCE $(CONTAINER_TAG)
|
|
ifeq ($(PODMAN_BUILD),1)
|
|
$(PODMAN_RUN) make $@
|
|
else
|
|
$(HOST_CARGO) clean --manifest-path cookbook/Cargo.toml
|
|
$(HOST_CARGO) clean --manifest-path cookbook/pkgar/Cargo.toml
|
|
$(HOST_CARGO) clean --manifest-path installer/Cargo.toml
|
|
$(HOST_CARGO) clean --manifest-path redoxfs/Cargo.toml
|
|
rm -rf $(HOST_FSTOOLS)
|
|
rm -f $(FSTOOLS_TAG)
|
|
endif
|