Add Docker
Add Docker Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
4153232a85
commit
fc5b8ddfd8
1 changed files with 12 additions and 1 deletions
13
Makefile
13
Makefile
|
@ -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
|
Loading…
Reference in a new issue