From c7b95175337f699fb21c11ae4ef55453f6cfd930 Mon Sep 17 00:00:00 2001 From: Chris Love Date: Sun, 1 Mar 2020 15:33:15 -0800 Subject: [PATCH] Makefile update for release artifacts --- .gitignore | 3 +++ README.md | 2 +- src/Makefile | 18 +++++++++++------- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index f2d6387..d7a7e7a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,9 @@ # Binary files *.BIN +# Artifacts +*.zip + # Prerequisites *.d diff --git a/README.md b/README.md index cb46f9b..7be76eb 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ From the splash screen use cursor up/down keys to select the world. Use `ENTER` Use cursor arrow keys to move the runner, `CTRL` to dig left and `ALT` to dig right. Use `ENTER` to kill the runner if trapped. ## Building and Running -Building requires the CC65 toolchain. After cloning the repo, do the following: +Building requires the CC65 toolchain. Python3 scripts are used to build binary files from various assets. After cloning the repo, do the following: ```bash git submodule update --init cd libX16/src diff --git a/src/Makefile b/src/Makefile index d42f3bb..c8bbffd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -44,22 +44,22 @@ SPLASH.BIN: ../assets/splash.txt TILES.BIN: ../assets/tiles.txt ../scripts/graphic.py --input ../assets/tiles.txt --output TILES.BIN --x 8 --y 8 --bpp 2 --addr 0000 -CLASSIC.BIN: ../assets/classic.json +CLASSIC.BIN: ../assets/classic.json ../scripts/levels.py ../scripts/levels.py --input ../assets/classic.json --output CLASSIC.BIN -CHAMP.BIN: ../assets/championship.json +CHAMP.BIN: ../assets/championship.json ../scripts/levels.py ../scripts/levels.py --input ../assets/championship.json --output CHAMP.BIN -PRO.BIN: ../assets/professional.json +PRO.BIN: ../assets/professional.json ../scripts/levels.py ../scripts/levels.py --input ../assets/professional.json --output PRO.BIN -FANBOOK.BIN: ../assets/fanbook.json +FANBOOK.BIN: ../assets/fanbook.json ../scripts/levels.py ../scripts/levels.py --input ../assets/fanbook.json --output FANBOOK.BIN -REVENGE.BIN: ../assets/revenge.json +REVENGE.BIN: ../assets/revenge.json ../scripts/levels.py ../scripts/levels.py --input ../assets/revenge.json --output REVENGE.BIN -CUSTOM.BIN: ../assets/custom.json +CUSTOM.BIN: ../assets/custom.json ../scripts/levels.py ../scripts/levels.py --input ../assets/custom.json --output CUSTOM.BIN @@ -71,4 +71,8 @@ clean: all: bins lode_runner -bins: CLASSIC.BIN CHAMP.BIN PRO.BIN FANBOOK.BIN REVENGE.BIN SPRITES.BIN TILES.BIN PALETTE.BIN CUSTOM.BIN SPLASH.BIN \ No newline at end of file +bins: CLASSIC.BIN CHAMP.BIN PRO.BIN FANBOOK.BIN REVENGE.BIN SPRITES.BIN TILES.BIN PALETTE.BIN CUSTOM.BIN SPLASH.BIN + +artifacts: all + rm -f ../lode_runner.zip + zip ../lode_runner.zip lode_runner.prg *.BIN \ No newline at end of file