Add Docker

Add Docker

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2021-06-03 17:43:30 +02:00
parent 4153232a85
commit fc5b8ddfd8

View file

@ -1,5 +1,16 @@
CC=sjasmplus CC=sjasmplus
CFLAGS= CFLAGS=
OBJ=hello read_one_key
%: DOCKER=docker
default: docker
all: $(OBJ)
$(OBJ):
$(CC) $@.asm --raw=$@.rom $(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