2024-01-31 06:51:17 +00:00
|
|
|
# Known configs:
|
|
|
|
# * airgap
|
|
|
|
|
2024-02-01 02:28:43 +00:00
|
|
|
CONFIG ?= airgap
|
|
|
|
|
2024-01-31 06:51:17 +00:00
|
|
|
.PHONY: default
|
2024-02-01 02:28:43 +00:00
|
|
|
default: out/archlinux-baseline-arch-$(CONFIG)-x86_64.iso
|
|
|
|
|
|
|
|
.PHONY: vars
|
|
|
|
vars:
|
|
|
|
@echo "CONFIG ?= $(CONFIG)"
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf out work || true
|
2024-01-31 06:51:17 +00:00
|
|
|
|
2024-02-01 05:42:49 +00:00
|
|
|
# NOTE: Relies on files in configs/% but make doesn't have recursive checks
|
|
|
|
out/archlinux-baseline-arch-%-x86_64.iso: configs/% Dockerfile PKGBUILD.keyfork
|
2024-01-31 06:51:17 +00:00
|
|
|
$(MAKE) docker-airgap-builder
|
|
|
|
mkdir -p out
|
|
|
|
docker run --rm --privileged --volume "$(PWD)/out:/out" airgap-builder $<
|
|
|
|
|
|
|
|
.PHONY: docker-airgap-builder
|
|
|
|
docker-airgap-builder:
|
|
|
|
docker build -t airgap-builder .
|