@@ -123,7 +123,7 @@ TESTFLAGS_PARALLEL ?= 8
123123OUTPUTDIR = $(join $(ROOTDIR ) , _output)
124124CRIDIR =$(OUTPUTDIR ) /cri
125125
126- .PHONY : clean all AUTHORS build binaries test integration generate protos checkprotos coverage ci check help install uninstall vendor release mandir install-man genman install-cri-deps cri-release cri-cni-release cri-integration bin/cri-integration.test
126+ .PHONY : clean all AUTHORS build binaries test integration generate protos checkprotos coverage ci check help install uninstall vendor release mandir install-man genman install-cri-deps cri-release cri-cni-release cri-integration install-deps bin/cri-integration.test
127127.DEFAULT : default
128128
129129all : binaries
@@ -262,6 +262,7 @@ release: releases/$(RELEASE).tar.gz
262262 @echo " $( WHALE) $@ "
263263 @cd releases && sha256sum $(RELEASE ) .tar.gz > $(RELEASE ) .tar.gz.sha256sum
264264
265+ # install of cri deps into release output directory
265266ifeq ($(GOOS ) ,windows)
266267install-cri-deps : $(BINARIES )
267268 mkdir -p $(CRIDIR )
@@ -343,6 +344,18 @@ uninstall:
343344 @echo " $( WHALE) $@ "
344345 @rm -f $(addprefix $(DESTDIR ) /bin/,$(notdir $(BINARIES ) ) )
345346
347+ ifeq ($(GOOS ) ,windows)
348+ install-deps :
349+ # TODO: need a script for hcshim something like containerd/cri/hack/install/windows/install-hcsshim.sh
350+ script/setup/install-critools
351+ script/setup/install-cni-windows
352+ else
353+ install-deps : # # install cri dependencies
354+ script/setup/install-seccomp
355+ script/setup/install-runc
356+ script/setup/install-critools
357+ script/setup/install-cni
358+ endif
346359
347360coverage : # # generate coverprofiles from the unit tests, except tests that require root
348361 @echo " $( WHALE) $@ "
@@ -373,7 +386,7 @@ root-coverage: ## generate coverage profiles for unit tests that require root
373386 fi ; \
374387 done )
375388
376- vendor :
389+ vendor : # # vendor
377390 @echo " $( WHALE) $@ "
378391 @go mod tidy
379392 @go mod vendor
0 commit comments