Using single makefile

This commit is contained in:
dariasteam 2018-05-10 11:00:51 +01:00
parent e249f15e13
commit 7011a97f70
2 changed files with 4 additions and 24 deletions

View file

@ -1,14 +1,12 @@
prefix ?= /usr/local
all:
echo "making"
mkdir -p build
cd build; git clone -b 2.1 --single-branch https://github.com/godotengine/godot || true
cd build/godot; git reset --hard a524cc92e7cccd012d028d870e4648c59473d04e
cd build/godot; scons -j `nproc` platform=server use_llvm=yes
cd build/godot; scons platform=x11 tools=no target=release_debug bits=64 use_llvm=yes -j `nproc`
mkdir -p ~/.godot/templates/
cp build/godot/bin/godot.x11.opt.debug.64.llvm ~/.godot/templates/linux_x11_64_release
cd build/godot; scons -j `nproc` platform=server target=release_debug use_llvm=yes unix_global_settings_path=".."
cd build/godot; scons platform=x11 tools=no target=release bits=`getconf LONG_BIT` use_llvm=yes -j `nproc`
mkdir -p build/templates/
cp build/godot/bin/godot.x11*.llvm build/templates/linux_x11_`getconf LONG_BIT`_release
build/godot/bin/godot_server.server.tools.64 -export "Linux X11" build/cowsrevenge

View file

@ -1,18 +0,0 @@
# Makefile: A standard Makefile for hello.c
all:
echo "making"
mkdir -p build
cd build; git clone -b 2.1 --single-branch https://github.com/godotengine/godot || true
cd build/godot; git reset --hard a524cc92e7cccd012d028d870e4648c59473d04e
cd build/godot; scons -j `nproc` platform=server use_llvm=yes unix_global_settings=".."
cd build/godot; scons platform=x11 tools=no target=release_debug bits=64 use_llvm=yes -j `nproc`
mkdir -p build/templates/
cp build/godot/bin/godot.x11.opt.debug.64.llvm build/templates/linux_x11_64_release
build/godot/bin/godot_server.server.tools.64 -export "Linux X11" build/cowsrevenge
install:
cp cowsrevenge /usr/local/bin/
cp org.pipoypipagames.cowsrevenge.desktop /usr/share/applications
cp org.pipoypipagames.cowsrevenge.appdata.xml /usr/share/metainfo/
cp cowsrevenge_icon.png /usr/share/icons/hicolor/64x64/apps/