1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-12-23 00:52:10 +00:00

Use BUILD_TYPE as APP_TITLE.

This commit is contained in:
Pablo Curiel 2020-10-26 16:17:57 -04:00
parent 5c5f388feb
commit 14ee45b38a
2 changed files with 7 additions and 6 deletions

View file

@ -40,7 +40,7 @@ APP_AUTHOR := DarkMatterCore
APP_VERSION := ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}
ifneq ($(origin BUILD_TYPE),undefined)
APP_VERSION := ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}-${BUILD_TYPE}
APP_TITLE := ${BUILD_TYPE}
endif
TARGET := ${APP_TITLE}

View file

@ -21,19 +21,20 @@ for f in ./code_templates/*.c; do
rm -f ./source/main.c
cp $f ./source/main.c
make clean &> /dev/null
make -j 12 BUILD_TYPE="$filename"
make BUILD_TYPE="$filename" clean
make BUILD_TYPE="$filename" -j 12
mkdir ./code_templates/tmp/$filename
cp ./nxdumptool-rewrite.nro ./code_templates/tmp/$filename/nxdumptool-rewrite.nro
#cp ./nxdumptool-rewrite.elf ./code_templates/tmp/$filename/nxdumptool-rewrite.elf
cp ./$filename.nro ./code_templates/tmp/$filename/nxdumptool-rewrite.nro
#cp ./$filename.elf ./code_templates/tmp/$filename/nxdumptool-rewrite.elf
make BUILD_TYPE="$filename" clean
done
cd ./code_templates/tmp
tar -cjf ../../$tar_filename *
cd ../..
make clean &> /dev/null
rm -f ./source/main.c
rm -rf ./code_templates/tmp