From 4f1593a0ed6ccd92b8f6145e5940a2f7b73ef917 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 14 Jun 2020 19:01:07 -0500 Subject: [PATCH] [nostalgia] Make gba-pkg's project an argument --- Makefile | 2 +- scripts/gba-pkg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2feeb453..dd099884 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ build: .PHONY: pkg-gba pkg-gba: $(foreach file, $(wildcard build/*), cmake --build $(file) --target install;) - ${ENV_RUN} ./scripts/gba-pkg + ${ENV_RUN} ./scripts/gba-pkg sample_project .PHONY: install install: $(foreach file, $(wildcard build/*), cmake --build $(file) --target install;) diff --git a/scripts/gba-pkg b/scripts/gba-pkg index b00f9bf9..0c49a025 100755 --- a/scripts/gba-pkg +++ b/scripts/gba-pkg @@ -6,7 +6,7 @@ BIN=./dist/$(cat .current_build)/bin/ PATH=$BIN:${DEVKITPRO}/tools/bin/:${DEVKITARM}/bin/:$PATH NOSTALGIA_BIN=build/gba-*/src/nostalgia/player/nostalgia.bin NOSTALGIA_MEDIA=nostalgia_media.oxfs -NOSTALGIA_PROJECT=sample_project +NOSTALGIA_PROJECT=$1 NOSTALGIA_GBA=nostalgia.gba MEDIA_HEADER=media_header.txt