mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
tests: simplify test makefile.
This commit is contained in:
parent
9731a09588
commit
c9c5db9b9a
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user