mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-12-24 17:21:51 +01:00
makefile improvements
This commit is contained in:
parent
5485aef989
commit
7b8a72f3db
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -46,7 +46,7 @@ jobs:
|
||||
mkdir build
|
||||
mkdir output
|
||||
# TODO: split this to use params for each flashcart type.
|
||||
make -j all
|
||||
make menu
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
@ -80,6 +80,7 @@ jobs:
|
||||
|
||||
- name: Finalize rom
|
||||
run: |
|
||||
# make all
|
||||
python ./tools/sc64/minify.py ./build/N64FlashcartMenu.elf ./output/N64FlashcartMenu.z64 ./output/sc64menu.n64
|
||||
continue-on-error: false
|
||||
|
||||
|
12
Makefile
12
Makefile
@ -1,4 +1,4 @@
|
||||
.DEFAULT_GOAL := all
|
||||
.DEFAULT_GOAL := menu
|
||||
|
||||
EXE_NAME = N64FlashcartMenu
|
||||
|
||||
@ -32,10 +32,14 @@ $(BUILD_DIR)/$(EXE_NAME).elf: $(OBJS)
|
||||
|
||||
$(EXE_NAME).z64: N64_ROM_TITLE=$(EXE_NAME)
|
||||
|
||||
all: $(EXE_NAME).z64
|
||||
$(shell mkdir $(OUTPUT_DIR))
|
||||
$(shell mv $(EXE_NAME).z64 $(OUTPUT_DIR))
|
||||
menu: $(EXE_NAME).z64
|
||||
$(shell mkdir -p $(OUTPUT_DIR))
|
||||
$(shell mv $(EXE_NAME).z64 $(OUTPUT_DIR))
|
||||
|
||||
sc64_minify:
|
||||
$(shell python3 ./tools/sc64/minify.py $(BUILD_DIR)/$(EXE_NAME).elf $(OUTPUT_DIR)/N64FlashcartMenu.z64 $(OUTPUT_DIR)/sc64menu.n64)
|
||||
|
||||
all: menu sc64_minify
|
||||
.PHONY: all
|
||||
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user