build.sh: custom target names

This commit is contained in:
cr0sd 2020-05-05 12:17:42 -05:00
parent bb0afee71e
commit 631b2128c0
2 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,8 @@ all:
@-cp -p src/65db src/65da src/fes bin
@echo " CP test/*.nes"
@-cp -p src/test/*.nes test
65da 65db lib:
@$(MAKE) -C src $@
clean:
@$(MAKE) -C src clean
@echo " RM bin/65db bin/65da bin/fes test/*.nes"

View File

@ -28,9 +28,16 @@ MAKECMD=$(cat $TMPFILE)
dialog --title "Target" --radiolist "Choose target" $NV $NH 10 \
all "Build normal target" on \
clean "Remove binary files" off \
Other "Specify other target(s)..." off \
2>$TMPFILE
TARGET=$(cat $TMPFILE)
# Specify custom target
if [ $TARGET = "Other" ]; then
dialog --title "Custom target name(s)" --inputbox "Specify custom target name:\n" $NV $NH "" 2> $TMPFILE
TARGET=$(cat $TMPFILE)
fi
# Make utility specific
if [ $MAKECMD = "make" ]; then