/ lsf / Makefile
swadhin biswas ci(release): automate GitHub Releases on tags and add Makefile release target · 10/15/2025
49d4252
18 lines · 406 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SHELL := /usr/bin/env bash

.PHONY: help release clean

help:
	@echo "Available targets:\n  release VERSION=x.y.z  Build release artifacts into dist/\n  clean                  Remove dist/"

release:
	@if [[ -z "$$VERSION" ]]; then \
		echo "ERROR: VERSION is required. Usage: make release VERSION=x.y.z"; \
		exit 1; \
	fi
	@chmod +x tools/release.sh
	@./tools/release.sh "$$VERSION"

clean:
	rm -rf dist