summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-15 17:17:49 +0000
committerChristian Breunig <christian@breunig.cc>2024-05-05 15:10:24 +0200
commit1cddaf2e47689098ef71cef11f51f7bd14191b03 (patch)
treedf19d7b3520cf01d4fb98e8237ea667703ffdd55 /Makefile
parent2b6a2bf86b5d90e574a08553b1fb42586bdc29b1 (diff)
downloadvyos-build-1cddaf2e47689098ef71cef11f51f7bd14191b03.tar.gz
vyos-build-1cddaf2e47689098ef71cef11f51f7bd14191b03.zip
build: T3664: add a parameterized make rule for build targets
to simplify the now-rather-tricky build script invocation (cherry picked from commit 29288652eaa245ccf7fe591f76460ef228d7dd4d)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 4d4317fc..ec39aacf 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: