From a2b8a5bb2d355ab3b2320716e41219eade286aa6 Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Thu, 14 Dec 2023 11:17:39 +0100 Subject: [PATCH] build: add system-* targets Add makefile targets to build and run the system test-image from ./test/image/. Signed-off-by: David Rheinsberg --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Makefile b/Makefile index b91d6b5f..d8061605 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,9 @@ help: @echo " meson-build: Build the Meson-based project" @echo " meson-setup: Reconfigure the Meson setup" @echo " meson-test: Run the Meson-based test suite" + @echo + @echo " system-build: Build system test-image" + @echo " system-run: Run system test-image" # # Target: BUILDDIR @@ -147,3 +150,25 @@ release-github: @echo " git push v${VNEXT}" @echo " * Upload tarball to github via custom release" @echo + +# +# Target: system-* +# + +.PHONY: system-build +system-build: + podman \ + build \ + --file "$(SRCDIR)/test/image/dbrk-fedora.Dockerfile" \ + --tag "dbrk-fedora" \ + -- \ + "$(SRCDIR)" + +.PHONY: system-run +system-run: + podman \ + run \ + --interactive \ + --rm \ + --tty \ + "dbrk-fedora"