feat: update project with glsl-glyphs
This commit is contained in:
+27
-3
@@ -19,6 +19,9 @@ RASP_ROOTFS ?= /run/media/$(shell whoami)/rootfs
|
||||
RELATIVE_PROJECT_PATH ?= /opt/forge-invar
|
||||
RASP_PROJECT_PATH ?= $(RASP_ROOTFS)$(RELATIVE_PROJECT_PATH)
|
||||
|
||||
GLSL_GLYPHS_DIR ?= forge-steel/glsl-glyphs
|
||||
GLSL_GLYPHS ?= $(UV) run --directory $(GLSL_GLYPHS_DIR) glsl-glyphs
|
||||
|
||||
# DOCS
|
||||
|
||||
.PHONY: help
|
||||
@@ -38,12 +41,18 @@ print-%:
|
||||
# FILES
|
||||
|
||||
.venv: uv.lock
|
||||
$(MAKE) -s uv-sync
|
||||
$(MAKE) uv-sync
|
||||
|
||||
sentences.txt:
|
||||
cp sentences.example.txt sentences.txt
|
||||
|
||||
project/inc_sentences.glsl: sentences.txt
|
||||
$(MAKE) glsl-glyphs-sentences
|
||||
|
||||
# ACTIONS
|
||||
|
||||
.PHONY: init
|
||||
init: uv-sync git-submodule-init git-submodule-update sentences ## install project
|
||||
init: uv-sync git-submodule-update sentences ## install project
|
||||
|
||||
.PHONY: update
|
||||
update: uv-upgrade ## update project dependencies
|
||||
@@ -61,7 +70,7 @@ gen-img: uv-run-invar-mode-gen-img ## generate resources/*.png
|
||||
debug-img: uv-run-invar-mode-debug-img ## debug i2c screen with mock data
|
||||
|
||||
.PHONY: sentences
|
||||
sentences: uv-run-invar-mode-sentences ## generate project/inc_sentences.glsl
|
||||
sentences: glsl-glyphs-sentences ## generate project/inc_sentences.glsl
|
||||
|
||||
.PHONY: rasp-init
|
||||
rasp-init: rasp-chmod-opt rasp-rsync rasp-unmount ## init raspberry
|
||||
@@ -114,6 +123,21 @@ ty: .venv ## ty check
|
||||
git-submodule-update: ## prepare git submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
.PHONY: glsl-glyphs-sentences
|
||||
glsl-glyphs-sentences: sentences.txt ## glsl-glyphs --sentences-only
|
||||
$(GLSL_GLYPHS) \
|
||||
--name cp437 \
|
||||
--functions \
|
||||
--includes \
|
||||
--glyph-names sample/cp437_names.txt \
|
||||
--sentences-only \
|
||||
--sentences-input ../../sentences.txt \
|
||||
--sentences-output ../../project/inc_sentences.glsl
|
||||
|
||||
.PHONY: forge-run
|
||||
forge-run: $(BUILD_DIR)/$(TARGET) ## run locally
|
||||
$(BUILD_DIR)/$(TARGET) $(RUN_ARGS)
|
||||
|
||||
.PHONY: rasp-chmod-opt
|
||||
rasp-chmod-opt: ## chmod remote project
|
||||
sudo chmod -R a+rwx $(RASP_ROOTFS)/opt
|
||||
|
||||
Reference in New Issue
Block a user