tests: simplify test makefile.

This commit is contained in:
Alexandre Pujol 2023-04-30 16:27:34 +01:00
parent 9731a09588
commit c9c5db9b9a
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -5,8 +5,8 @@
# Usage:
# make archlinux flavor=gnome
# vagrant up archlinux-gnome
# vagrant ssh archlinux-gnome
# vagrant up arch-gnome
# vagrant ssh archl-gnome
# Build variables
flavor ?=
@ -18,12 +18,10 @@ PACKERS = $(notdir $(patsubst %.pkr.hcl,%,$(wildcard packer/*.pkr.hcl)))
.PHONY: ${PACKERS} lint
$(PACKERS):
@for name in ${@}; do \
make --directory=../ package dist=$${name}; \
packer build -force -var version=${VERSION} \
-var disk_size=${disk} -var flavor="${flavor}" \
-only=main.qemu.$${name}-${flavor} packer/; \
done;
make --directory=../ package dist=${@}
packer build -force -var version=${VERSION} \
-var disk_size=${disk} -var flavor="${flavor}" \
-only=main.qemu.${@}-${flavor} packer/
lint:
@packer fmt packer/