Make combine.py only use main.lua (which will include all required files)

This commit is contained in:
Robert Miles 2018-09-03 03:16:16 -04:00
parent 531cc5de4f
commit 979d38d48b
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ SRC:=$(wildcard *.lua)
PICO8_DATA:=~/.lexaloffle/pico-8
$(NAME).p8: $(SRC)
python combine.py $(NAME).p8 base.p8 $(SRC)
python combine.py $(NAME).p8 base.p8 main.lua
.PHONY: clean test editbase
clean:

View File

@ -3,7 +3,7 @@ import p8btools,argparse,io
parser = argparse.ArgumentParser(prog="python combine.py",description="Combines a lua file into a .p8 cart.")
parser.add_argument("result",help="The filename for the resulting cart.")
parser.add_argument("p8cart",help="A .p8 cart.")
parser.add_argument("luafile",help="The lua file to inject into the .p8 cart.",nargs="+")
parser.add_argument("luafile",help="The lua file to inject into the .p8 cart.")
args = parser.parse_args()
cart = p8btools.Cart(args.p8cart)