Skip to content

Commit 7fd9dcf

Browse files
committed
Merge remote-tracking branch 'origin/pr/123'
2 parents 0e39b73 + c5557d1 commit 7fd9dcf

File tree

6 files changed

+23
-7
lines changed

6 files changed

+23
-7
lines changed

agent/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
# express or implied. See the License for the specific language governing
1212
# permissions and limitations under the License.
1313

14+
GOMOD := $(shell go env GOMOD)
15+
GOSUM := $(GOMOD:.mod=.sum)
16+
1417
all: agent
1518

16-
agent: *.go
19+
agent: *.go $(GOMOD) $(GOSUM)
1720
ifneq ($(STATIC_AGENT),)
1821
CGO_ENABLED=0 go build -installsuffix cgo -a -ldflags "-s" -o agent
1922
else

examples/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
# express or implied. See the License for the specific language governing
1212
# permissions and limitations under the License.
1313

14+
GOMOD := $(shell go env GOMOD)
15+
GOSUM := $(GOMOD:.mod=.sum)
16+
1417
all: examples
1518

1619
examples: taskworkflow
1720

18-
taskworkflow: taskworkflow.go
21+
taskworkflow: taskworkflow.go $(GOMOD) $(GOSUM)
1922
go build -o taskworkflow taskworkflow.go
2023

2124
clean:

runtime/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
EXTRAGOARGS:=
1616

1717
SOURCES:=$(shell find . -name '*.go')
18+
GOMOD := $(shell go env GOMOD)
19+
GOSUM := $(GOMOD:.mod=.sum)
1820

1921
all: runtime
2022

2123
runtime: containerd-shim-aws-firecracker
2224

23-
containerd-shim-aws-firecracker: $(SOURCES)
25+
containerd-shim-aws-firecracker: $(SOURCES) $(GOMOD) $(GOSUM)
2426
go build -o containerd-shim-aws-firecracker
2527

2628
install: containerd-shim-aws-firecracker

snapshotter/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ EXTRAGOARGS:=
1616

1717
SUBDIRS:=cmd/devmapper cmd/naive
1818
SOURCES:=$(shell find . -name '*.go')
19+
GOMOD := $(shell go env GOMOD)
20+
GOSUM := $(GOMOD:.mod=.sum)
1921

2022
all: $(SUBDIRS)
2123

@@ -25,10 +27,10 @@ $(SUBDIRS):
2527
install: $(SUBDIRS)
2628
for d in $(SUBDIRS); do $(MAKE) -C $$d install; done
2729

28-
test: $(SOURCES)
30+
test: $(SOURCES) $(GOMOD) $(GOSUM)
2931
go test ./... $(EXTRAGOARGS)
3032

3133
clean:
3234
for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
3335

34-
.PHONY: all $(SUBDIRS) clean install
36+
.PHONY: all $(SUBDIRS) clean install test

snapshotter/cmd/devmapper/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
# express or implied. See the License for the specific language governing
1212
# permissions and limitations under the License.
1313

14+
GOMOD := $(shell go env GOMOD)
15+
GOSUM := $(GOMOD:.mod=.sum)
16+
1417
all: devmapper_snapshotter
1518

16-
devmapper_snapshotter: *.go
19+
devmapper_snapshotter: *.go $(GOMOD) $(GOSUM)
1720
go build -o devmapper_snapshotter
1821

1922
install: devmapper_snapshotter

snapshotter/cmd/naive/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
# express or implied. See the License for the specific language governing
1212
# permissions and limitations under the License.
1313

14+
GOMOD := $(shell go env GOMOD)
15+
GOSUM := $(GOMOD:.mod=.sum)
16+
1417
all: naive_snapshotter
1518

16-
naive_snapshotter: *.go
19+
naive_snapshotter: *.go $(GOMOD) $(GOSUM)
1720
go build -o naive_snapshotter
1821

1922
install: naive_snapshotter

0 commit comments

Comments
 (0)