WINify makerogue

modify rogue game build
This commit is contained in:
ca333
2019-02-21 16:36:12 +01:00
committed by GitHub
parent 0a5e3b674d
commit e8a72377f7

View File

@@ -1,7 +1,26 @@
#!/bin/sh
cd rogue;
./configure
make; cd ..
if [ "$HOST" = "x86_64-w64-mingw32" ]; then
echo building rogue.exe...
if make -f Makefile_win "$@"; then
echo rogue.exe build SUCCESSFUL
cd ..
else
echo rogue.exe build FAILED
exit 1
fi
else
echo building rogue...
./configure
if make "$@"; then
echo rogue build SUCCESSFUL
cd ..
else
echo rogue build FAILED
exit 1
fi
fi
if make -f Makefile_rogue "$@"; then
echo ROGUE BUILD SUCCESSFUL