forked from hootrhino/rulex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
8,542 additions
and
8,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
APP=rulex | ||
VERSION=V0.0.1 | ||
.PHONY: all | ||
all: | ||
make build | ||
|
||
.PHONY: build | ||
build: | ||
go mod tidy | ||
chmod +x gen_version.sh | ||
chmod +x gen_banner.sh | ||
go generate | ||
CGO_ENABLED=1 GOOS=linux | ||
go build -v -ldflags "-s -w" -o ${APP} main.go | ||
|
||
.PHONY: xx | ||
xx: | ||
make build | ||
|
||
.PHONY: windows | ||
windows: | ||
go mod tidy | ||
SET GOOS=windows | ||
SET CGO_ENABLED=1 | ||
go build -ldflags "-s -w" -o ${APP}.exe main.go | ||
|
||
.PHONY: arm32 | ||
arm32: | ||
CC=arm-linux-gnueabi-gcc # Support ubuntu 1804, should install 'gcc-arm-linux-gnueabi' | ||
GOARM=7 | ||
GOARCH=arm | ||
GOOS=linux | ||
CGO_ENABLED=1 | ||
go build -ldflags "-s -w" -o ${APP} -ldflags "-linkmode external -extldflags -static" main.go | ||
|
||
.PHONY: run | ||
run: | ||
go run -race main.go run | ||
|
||
.PHONY: test | ||
test: | ||
go test rulex/test -v | ||
|
||
.PHONY: cover | ||
cover: | ||
go test rulex/test -v -cover | ||
|
||
.PHONY: clean | ||
clean: | ||
go clean | ||
rm _release -rf | ||
rm *.db *log.txt | ||
|
||
.PHONY: clean-grpc | ||
APP=rulex | ||
VERSION=V0.0.1 | ||
.PHONY: all | ||
all: | ||
make build | ||
|
||
.PHONY: build | ||
build: | ||
go mod tidy | ||
chmod +x gen_version.sh | ||
chmod +x gen_banner.sh | ||
go generate | ||
CGO_ENABLED=1 GOOS=linux | ||
go build -v -ldflags "-s -w" -o ${APP} main.go | ||
|
||
.PHONY: xx | ||
xx: | ||
make build | ||
|
||
.PHONY: windows | ||
windows: | ||
go mod tidy | ||
SET GOOS=windows | ||
SET CGO_ENABLED=1 | ||
go build -ldflags "-s -w" -o ${APP}.exe main.go | ||
|
||
.PHONY: arm32 | ||
arm32: | ||
CC=arm-linux-gnueabi-gcc # Support ubuntu 1804, should install 'gcc-arm-linux-gnueabi' | ||
GOARM=7 | ||
GOARCH=arm | ||
GOOS=linux | ||
CGO_ENABLED=1 | ||
go build -ldflags "-s -w" -o ${APP} -ldflags "-linkmode external -extldflags -static" main.go | ||
|
||
.PHONY: run | ||
run: | ||
go run -race main.go run | ||
|
||
.PHONY: test | ||
test: | ||
go test rulex/test -v | ||
|
||
.PHONY: cover | ||
cover: | ||
go test rulex/test -v -cover | ||
|
||
.PHONY: clean | ||
clean: | ||
go clean | ||
rm _release -rf | ||
rm *.db *log.txt | ||
|
||
.PHONY: clean-grpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# rulex | ||
Rulex is a RuLE-LEX framework for edge computing (so called fog-computing), support various data sources and data flows. Rulex is designed to process data streams fast and reliable with IoT southern gateways. | ||
# rulex | ||
Rulex is a RuLE-LEX framework for edge computing (so called fog-computing), support various data sources and data flows. Rulex is designed to process data streams fast and reliable with IoT southern gateways. |
Oops, something went wrong.