Skip to content

Commit

Permalink
Makefile update for release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
CJLove committed Mar 1, 2020
1 parent 09e6e66 commit c7b9517
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Binary files
*.BIN

# Artifacts
*.zip

# Prerequisites
*.d

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 11 additions & 7 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
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

0 comments on commit c7b9517

Please sign in to comment.