CI/CD templates for Commodore Plus/4 projects: the c64-tools set with xplus4 and the plus4-builder image

This commit is contained in:
2026-09-07 23:20:17 +02:00
commit 8f6d420e3d
6 changed files with 187 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
# -----------------------------------------
# Makefile Plus/4 project builder (ACME + VICE)
# -----------------------------------------
PROJECT = example
ASM = acme
EMU = xplus4
SRC = main.asm
SRCS = $(wildcard *.asm)
TARGET ?= $(PROJECT).prg
METADATA = metadata.json
UNAME_S := $(shell uname -s)
# CI/CD variables
VERSION_FILE = .version
all: build
deps:
ifeq ($(UNAME_S),Darwin)
@command -v brew >/dev/null 2>&1 || { echo "Homebrew kell ehhez. Telepitsd: https://brew.sh"; exit 1; }
brew install acme vice
else
@echo "A 'deps' target csak macOS-en (Darwin) automatikus. Detektalt OS: $(UNAME_S)"
@echo "Telepitsd kezzel: acme assembler + VICE emulator (xplus4)."
@exit 1
endif
build: $(TARGET)
$(TARGET): $(SRCS)
$(ASM) -f cbm -o $(TARGET) $(SRC)
run: build
$(EMU) $(TARGET)
clear:
rm -f $(TARGET) $(PROJECT)-*.prg $(PROJECT)-*.metadata.json $(VERSION_FILE)
rebuild: clear build
rebuildrun: clear build run
.PHONY: all deps build run clear rebuild rebuildrun