-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathMakefile
More file actions
83 lines (54 loc) · 2.53 KB
/
Copy pathMakefile
File metadata and controls
83 lines (54 loc) · 2.53 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- coding:utf-8 -*-
.PHONY: build
build:build.clean mod cp.etc build.api build.dg build.dm build.ud
runall: run.dm run.dg run.ud run.api
buildone:build.clean mod cp.etc build.api moduleupdate build.core build.front
#仅编译后端
buildback: build.clean mod cp.etc build.api
packback: buildback toremote
toremote:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>tormote cmd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@rsync -r -v ./cmd/* root@47.94.112.109:/root/run
killall:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>killing all<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@killall apisvr &
@killall dgsvr &
@killall syssvr &
@killall dmsvr &
@killall timedjob &
@killall timedscheduler &
build.clean:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>clean cmd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@rm -rf ./cmd/*
mod:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>downloading $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go mod tidy
cp.etc:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>copying etc<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@mkdir -p ./cmd/things/etc/
@mkdir -p ./cmd/things/dist/
@cp -rf ./service/apisvr/etc/* ./cmd/things/etc/
build.api:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/thingsvr ./service/apisvr
build.dg:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/dgsvr ./service/dgsvr
build.dm:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/dmsvr ./service/dmsvr
build.ud:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>making $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@go build -ldflags="-s -w" -tags no_k8s -o ./cmd/things/udsvr ./service/udsvr
run.api:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./apisvr & cd ..
run.dg:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./dgsvr & cd ..
run.dm:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./dmsvr & cd ..
run.ud:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./udsvr & cd ..