Make combine.py only use main.lua (which will include all required files)
This commit is contained in:
parent
531cc5de4f
commit
979d38d48b
2
Makefile
2
Makefile
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue