-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
66 lines (64 loc) · 1.72 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
59
60
61
62
63
64
65
66
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
clean:
rm -rf bin/
rm -rf server/web/
cd fileshare_web && make clean
cd fileshare && make clean
@echo "clean done"
build-linux:
cd fileshare_web && make build-web
cp -r fileshare_web/build/web/ ./fileshare_go/server/
cd fileshare_go && make build-so-linux
cd fileshare && make build-linux
cp -r fileshare/bin/ ./
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"
@ls -lha bin
build-windows:
cd fileshare_web && make build-web
cp -r fileshare_web/build/web/ ./fileshare_go/server/
cd fileshare_go && make build-so-windows
cd fileshare && make build-windows
cp -r fileshare/bin/ ./
@echo "PLATFORM: $(PLATFORM) all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"
@ls -lha bin
build-android:
cd fileshare_web && make build-web
cp -r fileshare_web/build/web/ ./fileshare_go/server/
cd fileshare_go && make build-so-android
cd fileshare && make build-apk
cp -r fileshare/bin/ ./
@echo "all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"
@ls -lha bin
build-la:
cd fileshare_web && make build-web
cp -r fileshare_web/build/web/ ./fileshare_go/server/
cd fileshare_go && make build-so-linux
cd fileshare_go && make build-so-android
cd fileshare && make build-apk
cd fileshare && make build-linux
cp -r fileshare/bin/ ./
@echo "all done, look at the directory bin/"
@echo "--------$$ ls -lha bin --------"
@ls -lha bin