moved requesting game restart to function that checks for game over
[rocksndiamonds.git] / build-projects / android / Makefile
1 # =============================================================================
2 # Rocks'n'Diamonds for Android
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2020 by Artsoft Entertainment
5 #                  Holger Schemel
6 #                  info@artsoft.org
7 #                  https://www.artsoft.org/
8 # -----------------------------------------------------------------------------
9 # build-projects/android/Makefile
10 # =============================================================================
11
12 PROGBASE = rocksndiamonds
13
14 AUTO_GENERATED_BUILD_DIRS = .gradle app/.externalNativeBuild app/build
15 AUTO_GENERATED_OTHER_DIRS = app/jni/SDL2* app/src/main/assets .prepared
16
17 export ANDROID_HOME := $(HOME)/projects/Android/SDK
18
19
20 all: package
21
22 sdl:
23         ./build-scripts/create_sdl.sh
24
25 manifest:
26         ./build-scripts/create_manifest.sh
27
28 assets:
29         ./build-scripts/create_assets.sh
30
31 assets-toc:
32         ./build-scripts/create_asset_tocs.sh app/src/main/assets
33
34 .prepared: sdl manifest assets assets-toc
35         make -C ../.. auto-conf conf-time conf-hash
36
37 prepare: .prepared
38
39 package: prepare
40         ./gradlew assembleDebug
41
42 clean-build:
43         ./gradlew clean
44
45 clean-auto-generated:
46         rm -rf $(AUTO_GENERATED_BUILD_DIRS) $(AUTO_GENERATED_OTHER_DIRS)
47
48 clean: clean-build
49
50 dist-clean: clean-build clean-auto-generated