apparmor.d/tests/Makefile

29 lines
675 B
Makefile
Raw Normal View History

#!/usr/bin/make -f
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# Usage:
# make archlinux flavor=gnome
2023-04-30 17:27:34 +02:00
# vagrant up arch-gnome
# vagrant ssh archl-gnome
# Build variables
flavor ?=
disk ?= 10G
2023-10-01 17:02:18 +02:00
VERSION := 0.$(shell git rev-list --count HEAD)
BASE = archlinux debian ubuntu opensuse fedora
2023-09-10 13:24:47 +02:00
.PHONY: ${BASE} lint
2023-09-10 13:24:47 +02:00
$(BASE):
2023-09-19 19:35:24 +02:00
@make --directory=../ package dist=${@}
@packer build -force -var version=${VERSION} \
2023-04-30 17:27:34 +02:00
-var disk_size=${disk} -var flavor="${flavor}" \
-only=qemu.${@} packer/
lint:
2023-09-19 19:35:24 +02:00
@packer fmt --check packer/
@packer validate --syntax-only packer/