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

all: escargot_parts.vescpkg

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

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

clean:
	rm -f escargot_parts.vescpkg

.PHONY: all clean test
