tools(make): sample targets
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user