Makefile: add CONFiG variable, clean and vars targets
This commit is contained in:
parent
373c050f14
commit
4c5ea2b66b
16
Makefile
16
Makefile
|
@ -1,10 +1,20 @@
|
||||||
# Known configs:
|
# Known configs:
|
||||||
# * airgap
|
# * airgap
|
||||||
|
|
||||||
.PHONY: default
|
CONFIG ?= airgap
|
||||||
default: out/archlinux-baseline-arch-airgap-x86_64.iso
|
|
||||||
|
|
||||||
out/archlinux-baseline-arch-%-x86_64.iso: configs/%
|
.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
|
||||||
|
|
||||||
|
out/archlinux-baseline-arch-%-x86_64.iso: configs/%/
|
||||||
$(MAKE) docker-airgap-builder
|
$(MAKE) docker-airgap-builder
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
docker run --rm --privileged --volume "$(PWD)/out:/out" airgap-builder $<
|
docker run --rm --privileged --volume "$(PWD)/out:/out" airgap-builder $<
|
||||||
|
|
Loading…
Reference in New Issue