Fixed the build on Unix machines

This commit is contained in:
e.bovendeur 2009-11-18 09:28:44 +00:00
parent 6e8489e335
commit 07d2e8582e
3 changed files with 18 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
<version>1.0 r836</version>
<release_date>200911180000</release_date>
<release_date>200910150000</release_date>
<short_description>Loads games from USB-devices</short_description>
<long_description>USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times.
The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.

View File

@ -105,14 +105,14 @@ export OUTPUT := $(CURDIR)/$(TARGET)
#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@[[ -f source/buildtype.h && ! -s source/buildtype.h ]] || cp /dev/null source/buildtype.h
@/bin/bash ./buildtype.sh
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
# @echo debug...
# start geckoreader.exe
channel:
@[ -d build ] || mkdir -p build
@[ -s source/buildtype.h ] || echo '#define FULLCHANNEL' > source/buildtype.h
@/bin/bash ./buildtype.sh FULLCHANNEL
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
#---------------------------------------------------------------------------------
@ -123,7 +123,7 @@ lang:
#---------------------------------------------------------------------------------
all:
@[ -d build ] || mkdir -p build
@[[ -f source/buildtype.h && ! -s source/buildtype.h ]] || cp /dev/null source/buildtype.h
@shell bash ./buildtype.sh
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile language

14
buildtype.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
if [ ! -z "$1" ];
then
if [ ! -s source/buildtype.h ];
then
echo "#define $1" > source/buildtype.h
fi
else
if [[ ! -f source/buildtype.h || -s source/buildtype.h ]];
then
cp /dev/null source/buildtype.h
fi
fi