# Copyright 2026 Stephen Bouche
# SPDX-License-Identifier: GPL-3.0-or-later
VESC_TOOL ?= vesc_tool

all: ubox_evg_profile.vescpkg

ubox_evg_profile.vescpkg: profile.json README.md pkgdesc.qml
	python3 -I ../tools/profile_check.py profile.json ../escargot_parts/profile.json
	$(VESC_TOOL) --buildPkgFromDesc pkgdesc.qml

test:
	python3 -I ../tools/profile_check.py profile.json ../escargot_parts/profile.json

clean:
	rm -f ubox_evg_profile.vescpkg

.PHONY: all clean test
