airgap-ng/Makefile

26 lines
582 B
Makefile
Raw Permalink Normal View History

2024-01-31 06:51:17 +00:00
# Known configs:
# * airgap
CONFIG ?= airgap
2024-01-31 06:51:17 +00:00
.PHONY: default
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 .