We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160f265 commit f1f837eCopy full SHA for f1f837e
src/Makefile
@@ -5,18 +5,22 @@ PROTOS := protos/io/defang/v1/fabric.pb.go protos/io/defang/v1/defangv1connect/f
5
6
BINARY_NAME:=defang
7
GOFLAGS:=-ldflags "-X main.version=$(VERSION)"
8
+GOSRC := $(shell find . -name '*.go')
9
-$(BINARY_NAME): test
10
+$(BINARY_NAME): $(PROTOS) $(GOSRC) go.mod go.sum
11
go build -o $@ $(GOFLAGS) ./cmd/cli
12
13
+.PHONY: build
14
+build: $(BINARY_NAME)
15
+
16
.PHONY: protos
17
protos: $(PROTOS)
18
$(PROTOS) &: protos/io/defang/v1/fabric.proto buf.gen.yaml
19
cd protos && buf lint
20
buf generate protos
21
22
.PHONY: install
-install: $(BINARY_NAME)
23
+install: $(BINARY_NAME) test
24
install $(BINARY_NAME) "${HOME}/.local/bin/"
25
26
.PHONY: test
0 commit comments