forked from opa334/Dopamine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 773 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
export NIGHTLY ?= 0
ifeq ($(NIGHTLY), 1)
export COMMIT_HASH = $(shell git rev-parse HEAD)
endif
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 /var/mobile/Documents/Dopamine.tipa"
scp -C ./Application/Dopamine.tipa "$(DEVICE):/var/mobile/Documents/Dopamine.tipa"
ssh $(DEVICE) "/var/jb/basebin/jbctl update tipa /var/mobile/Documents/Dopamine.tipa"
update-basebin: all
ssh $(DEVICE) "rm -rf /var/mobile/Documents/basebin.tar"
scp -C ./BaseBin/basebin.tar "$(DEVICE):/var/mobile/Documents/basebin.tar"
ssh $(DEVICE) "/var/jb/basebin/jbctl update basebin /var/mobile/Documents/basebin.tar"
.PHONY: update clean