Skip to content

Commit

Permalink
Actions bugfix (#4)
Browse files Browse the repository at this point in the history
* update makefiles to clean src and handle dist better

* nuke dist folder on clean

* add distfiles to dist folder on make all

* add working PLATFORM var export

Co-authored-by: Tom Marks <[email protected]>
  • Loading branch information
phy1um and phy1um authored Aug 29, 2021
1 parent e4aa70e commit f691159
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ dist: $(BIN) assets

.PHONY: assets
assets:
if ! [ -d dist ]; then mkdir dist; fi
$(MAKE) -C asset
cp asset/*.bin dist/
cp distfiles/* dist/

$(BIN):
$(MAKE) -C src test.elf
if ! [ -d dist ]; then mkdir dist; fi
$(MAKE) PLATFORM=ps2 -C src test.elf
cp src/test.elf dist/test.elf

# TODO(phy1um): update ISO building to include everything in dist/
Expand All @@ -33,7 +36,7 @@ docker-elf:
clean:
$(MAKE) -C src clean
$(MAKE) -C asset clean
rm -rf dist/*
rm -rf dist/

.PHONY: run
run:
Expand Down
Binary file removed cube.bin
Binary file not shown.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ EE_LIBS=-ldma -lgraph -ldraw -lkernel -ldebug -lmath3d -lm -lpad
EE_CFLAGS += -Wall --std=c99
EE_LDFLAGS = -L$(PSDSDK)/ee/common/lib -L$(PS2SDK)/ee/lib

ifeq ($(PLATFORM), ps2)
include $(PS2SDK)/samples/Makefile.eeglobal
include $(PS2SDK)/samples/Makefile.pref
endif

.PHONY: clean
clean:
Expand Down

0 comments on commit f691159

Please sign in to comment.