26 Star 225 Fork 98

iThings/things

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 3.60 KB
一键复制 编辑 原始数据 按行查看 历史
杨磊 提交于 2024-09-12 15:07 . feat: 完善项目`
# -*- coding:utf-8 -*-
.PHOmakeNY: 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
packbackzhou: buildback toremotezhou
moduleupdate:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>$@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@git submodule update --init --recursive
@git submodule foreach git checkout master
@git submodule foreach git pull
build.front:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>$@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@mkdir -p ./cmd/core/dist/app/things
@cd module/front/things && yarn install && yarn run build && cp -rf ./dist/* ../../../cmd/core/dist/app/things
build.core:
@mkdir -p ./cmd/core
@cd module/core && make buildone
@cp -rf module/core/cmd/* ./cmd/core
build.coreback:
@mkdir -p ./cmd/core
@cd module/core && make buildback
@cp -rf module/core/cmd/* ./cmd/core
toremote:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>tormote cmd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@rsync -r -v ./cmd/* root@120.79.205.165:/root/git/iThings
toremotezhou:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>tormote cmd<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@rsync -r -v ./cmd/* root@139.159.188.223:/root/git/iThings
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 download
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.view:
@echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>run $@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
@cd cmd/things && nohup ./viewsvr & 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 ..
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/i-Things/things.git
git@gitee.com:i-Things/things.git
i-Things
things
things
master

搜索帮助