-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (19 loc) · 867 Bytes
/
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
unit-test:
go test ./... -coverprofile coverage.out .
unit-test-html: unit-test
go tool cover -html=coverage.out
TARGET_EXEC := alexandria
GO_BUILD_DIR := ./persistence
SRC_DIR := ./
# Find all the C and C++ files we want to compile
# Note the single quotes around the * expressions. Make will incorrectly expand these otherwise.
SRCS := $(shell find $(SRC_DIR) -name '*.proto')
$(GO_BUILD_DIR)/$(TARGET_EXEC): $(SRCS)
protoc -I. --go_out=$(GO_BUILD_DIR) $(SRCS)
rsync -a $(GO_BUILD_DIR)/github.com/alexandria-oss/streams/persistence/ $(GO_BUILD_DIR)
rm -r $(GO_BUILD_DIR)/github.com
gen-proto: $(GO_BUILD_DIR)/$(TARGET_EXEC)
publish-pkg:
chmod +x publish-go-pkg.sh && ./publish-go-pkg.sh -v $(version) -m $(module_name)
build-egress-proxy-log-agent:
docker build -f agent/egress-proxy-log-listener/Dockerfile -t alexandria/egress-proxy-agent:latest .