tools(make): sample targets
Python Lint CI / ty (push) Successful in 5m25s
Python Lint CI / ruff-format-check (push) Successful in 5m28s
Python Lint CI / ruff (push) Successful in 5m36s

This commit is contained in:
2026-11-07 16:21:34 +01:00
parent 22d2952334
commit 6bafa648f6
7 changed files with 20 additions and 1 deletions
+17 -1
View File
@@ -35,7 +35,7 @@ print-%:
# FILES
.venv: uv.lock
$(MAKE) -s uv-sync
$(MAKE) --no-print-directory uv-sync
# ACTIONS
@@ -48,6 +48,13 @@ update: uv-upgrade ## update project dependencies
.PHONY: run
run: uv-run ## run project
.PHONY: sample-all
sample-all: sample-cp437 sample-cw sample-pmlomb ## generate all samples
.PHONY: sample-%
sample-%: ## generate sample (cp437/cw/pmlomb)
make --no-print-directory uv-run-sample-$*
.PHONY: format
format: ruff-fix ruff-format ## format project
@@ -71,6 +78,15 @@ uv-upgrade: ## uv sync upgrade
uv-run: .venv ## uv run (project)
$(UV) run --active $(PROJECT_NAME) $(RUN_ARGS)
uv-run-sample-%: .venv ## uv run (project) sample/(xxx)
$(UV) run --active $(PROJECT_NAME) \
--name $* \
--input sample/$*_8x8.png \
--glyph-names sample/$*_names.txt \
--sets sample/$*_sets.csv \
--output build/$*.glsl \
--functions \
.PHONY: ruff
ruff: .venv ## ruff check
$(RUFF) check
+3
View File
@@ -54,12 +54,15 @@ help show this message
install install project
update update project dependencies
run run project
sample-all generate all samples
sample-% generate sample (cp437/cw/pmlomb)
format format project
lint lint project
build build project
uv-sync uv sync
uv-upgrade uv sync upgrade
uv-run uv run (project)
uv-run-sample-% uv run (project) sample/(xxx)
ruff ruff check
ruff-fix ruff check (and fix)
ruff-format ruff format

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 462 B

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB