forked from roothide/Dopamine2-roothide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 900 Bytes
/
Makefile
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
export NIGHTLY ?= 1
export ENABLE_LOGS ?= 1
ifeq ($(NIGHTLY), 1)
export COMMIT_HASH = $(shell git describe --tags --abbrev=0)
endif
export DOPAMINE_VERSION = $(shell cat ./BaseBin/_external/basebin/.version)
all:
@$(MAKE) -C BaseBin
@$(MAKE) -C Packages
@$(MAKE) -C Application
clean:
@$(MAKE) -C BaseBin clean
@$(MAKE) -C Packages clean
@$(MAKE) -C Application clean
update: all
ssh $(DEVICE) "rm -rf /rootfs/var/mobile/Documents/Dopamine.tipa"
scp -C ./Application/Dopamine.tipa "$(DEVICE):/rootfs/var/mobile/Documents/Dopamine.tipa"
ssh $(DEVICE) "/basebin/jbctl update tipa /var/mobile/Documents/Dopamine.tipa"
update-basebin: all
ssh $(DEVICE) "rm -rf /rootfs/var/mobile/Documents/basebin.tar"
scp -C ./BaseBin/basebin.tar "$(DEVICE):/rootfs/var/mobile/Documents/basebin.tar"
ssh $(DEVICE) "/basebin/jbctl update basebin /var/mobile/Documents/basebin.tar"
.PHONY: update clean