From 29288652eaa245ccf7fe591f76460ef228d7dd4d Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 15 Apr 2024 17:17:49 +0000 Subject: build: T3664: add a parameterized make rule for build targets to simplify the now-rather-tricky build script invocation --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 18fd3939..f72d4fd1 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,10 @@ all: @echo "Make what specifically?" @echo "The most common target is 'iso'" -.PHONY: iso -.ONESHELL: -iso: clean - set -o pipefail - @./build-vyos-image iso - exit 0 +%: + sudo \ + VYOS_TEMPLATE_DIR=`pwd`/vyos-1x/data/templates/ \ + ./build-vyos-image --reuse-iso vyos-1.5-rolling-202404130016-amd64.iso $* .PHONY: checkiso .ONESHELL: -- cgit v1.2.3