4
0

pipeline update

This commit is contained in:
2026-01-25 16:19:29 +01:00
parent 2fc241fee7
commit 928347ee95

View File

@@ -19,8 +19,8 @@ all: build
build: $(OUTPUT) build: $(OUTPUT)
$(OUTPUT): $(SRC) $(ORDER) $(OUTPUT): $(SRC) $(ORDER)
@rm -f $(OUTPUT) @rm -f $(OUTPUT)
@while read f; do \ @while read f; do \
cat "$(SRC_DIR)/$$f" >> $(OUTPUT); \ cat "$(SRC_DIR)/$$f" >> $(OUTPUT); \
echo "" >> $(OUTPUT); \ echo "" >> $(OUTPUT); \
done < $(ORDER) done < $(ORDER)
@@ -46,8 +46,13 @@ export_assets: build
$(OUTPUT) > $(ASSETS_LUA) $(OUTPUT) > $(ASSETS_LUA)
export: build export: build
tic80 --cli --skip --fs=. \ @{ \
--cmd="load $(OUTPUT) & save $(PROJECT) & export html $(PROJECT).html & exit" VERSION=$$(sed -n 's/^-- version: //p' $(OUTPUT) | head -n 1); \
echo "==> Exporting HTML for version $$VERSION"; \
mkdir -p "$$VERSION"; \
tic80 --cli --skip --fs=. \
--cmd="load $(OUTPUT) & save $(PROJECT) & export html $$VERSION/$(PROJECT).html & exit"; \
}
watch: watch:
make build make build