Skip to content

Commit

Permalink
Add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazedProgrammer committed Mar 19, 2019
1 parent 34a2a01 commit e728224
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
URN=urn
URNFLAGS=
RUNFLAGS=

testenv:
mkdir testenv
curl https://i.crzd.me/ccfs.json -o testenv/ccfs.json
curl https://raw.githubusercontent.com/dan200/ComputerCraft/master/src/main/resources/assets/computercraft/lua/bios.lua -o testenv/bios.lua
curl https://raw.githubusercontent.com/rxi/json.lua/master/json.lua -o testenv/json.lua

build:
$(URN) ./src/main.lisp -i ./src -o ./testenv/ccbox $(URNFLAGS)

run:
$(MAKE) build URNFLAGS+="--run -- --json ./testenv/json.lua --boot ./testenv/bios.lua --log ./testenv/log.txt tw:/:./testenv/ccfs.json"

0 comments on commit e728224

Please sign in to comment.