deps
This commit is contained in:
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
@@ -1,6 +1,12 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "deps",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make deps",
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "build",
|
"label": "build",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
|||||||
14
Makefile
14
Makefile
@@ -3,7 +3,19 @@ EMU = x64sc
|
|||||||
SRC = main.asm
|
SRC = main.asm
|
||||||
TARGET = main.prg
|
TARGET = main.prg
|
||||||
|
|
||||||
.PHONY: build run clear rebuild rebuildrun
|
UNAME_S := $(shell uname -s)
|
||||||
|
|
||||||
|
.PHONY: build run clear rebuild rebuildrun deps
|
||||||
|
|
||||||
|
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 (x64sc)."
|
||||||
|
@exit 1
|
||||||
|
endif
|
||||||
|
|
||||||
build: $(TARGET)
|
build: $(TARGET)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user