forked from vito-go/mywords
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
58 lines (53 loc) · 1.36 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
56
57
58
ifeq ($(OS),Windows_NT)
PLATFORM="Windows"
else
ifeq ($(shell uname),Darwin)
PLATFORM="MacOS"
else
PLATFORM="Unix-Like"
endif
endif
build:
ifeq ($(OS),Windows_NT)
make build-windows
else
ifeq ($(shell uname),Darwin)
echo "not supported: Darwin"
exit 1
else
make build-linux
endif
endif
FLUTTER_DIR='mywords-flutter'
GO_DIR='mywords-go'
clean:
rm -rf bin/
cd $(FLUTTER_DIR) && make clean
@echo "clean done"
build-linux:
cd $(GO_DIR) && make build-so-linux
cd $(FLUTTER_DIR) && make build-linux
cp -r $(FLUTTER_DIR)/bin/ ./
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"
@ls -lha bin
build-windows:
cd $(GO_DIR) && make build-so-windows
cd $(FLUTTER_DIR) && make build-windows
cp -r $(FLUTTER_DIR)/bin/ ./
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"
@ls -lha bin
build-android:
cd $(GO_DIR) && make build-so-android
cd $(FLUTTER_DIR) && make build-apk
cp -r $(FLUTTER_DIR)/bin/ ./
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"
@ls -lha bin
build-la: build-android build-linux
build-web-platform:
cd $(GO_DIR) && make build-web-platform
cp -r $(GO_DIR)/bin/ ./
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"