Skip to content

Commit

Permalink
build: add system-* targets
Browse files Browse the repository at this point in the history
Add makefile targets to build and run the system test-image from
./test/image/.

Signed-off-by: David Rheinsberg <[email protected]>
  • Loading branch information
dvdhrm committed Dec 14, 2023
1 parent 01183eb commit a2b8a5b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -147,3 +150,25 @@ release-github:
@echo " git push <remote> 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"

0 comments on commit a2b8a5b

Please sign in to comment.