From fc5b8ddfd8ee37bdb3d9504212ccf265d73e7004 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Thu, 3 Jun 2021 17:43:30 +0200 Subject: [PATCH] Add Docker Add Docker Signed-off-by: Bensuperpc --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 98d9125..f31fb5c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,16 @@ CC=sjasmplus CFLAGS= +OBJ=hello read_one_key -%: +DOCKER=docker + +default: docker + +all: $(OBJ) + +$(OBJ): $(CC) $@.asm --raw=$@.rom + +docker: + $(DOCKER) pull bensuperpc/sjasmplus:latest + $(DOCKER) run --rm -v "$(PWD)":/usr/src/myapp -w /usr/src/myapp bensuperpc/sjasmplus:latest make all \ No newline at end of file