-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (43 loc) · 1.04 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#CURRENT=$(shell git branch | sed -n '/*/s///p' | sed -n 's/^ //p' | sed 's/.* //' | sed 's/)//')
CURRENT = `git branch | sed -n '/*/s///p' | sed -n 's/^ //p' | sed 's/.* //' | sed 's/)//' | sed "s/)//"`
.PHONY:git
pull:
@echo git pull origin ${CURRENT}
@git pull origin ${CURRENT}
@git submodule update
@git fetch -p
@git fetch --tags
@git fetch --all
push:
@echo git push origin ${CURRENT}
@git push origin ${CURRENT}
submodule/init:
@git submodule update --init --recursive
submodule/update:
@git submodule update
git/rebase:
git stash
git checkout develop
git pull origin develop
git submodule update
git checkout $(CURRENT)
git submodule update
git rebase -i develop
git stash pop | echo
git/merge:
git stash
git pull origin $(CURRENT)
git checkout develop
git pull origin develop
git submodule update
git merge --no-ff $(CURRENT)
.PHONY:clean clean force/clean
clean:
@bash flutter clean
@find ./ -name "outputs" | xargs rm -rf
@find ./ -name "build" | xargs rm -rf
clear:clean
run:
@flutter run
doctor:
@flutter doctor