-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (24 loc) · 629 Bytes
/
Makefile
File metadata and controls
38 lines (24 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Keystore
KEYSTORE = debug.keystore
KEYSTORE_ALIAS = debugkey
# Scripts
BUILD_SCRIPT := ./scripts/build
# Directories
BUILD = ./.build
BIN = $(BUILD)/bin
JAVA_DIR := ./java
RES_DIR := ./res
# Files
APK = $(BIN)/app-signed.apk
JAVA = $(shell find $(JAVA_DIR) -name "*.java")
RES = $(shell find $(RES_DIR) -name "*.xml")
.PHONY: apk-build apk-install apk-clean
apk-install: apk-build
@echo "Installing apk..."
@adb install -r $(APK)
apk-build: $(APK)
$(APK): $(JAVA) $(RES)
@rm -rf $(BUILD)
@KEYSTORE=$(KEYSTORE) KEYSTORE_ALIAS=$(KEYSTORE_ALIAS) bash $(BUILD_SCRIPT)
apk-clean:
@CLEAN=true bash $(BUILD_SCRIPT)