github.com/looshlee/cilium@v1.6.12/plugins/cilium-cni/Makefile (about) 1 include ../../Makefile.defs 2 3 all: cilium-cni 4 5 TARGET=cilium-cni 6 7 clean: 8 @$(ECHO_CLEAN) 9 $(QUIET)$(GO) clean 10 -$(QUIET)rm -f $(TARGET) 11 12 SOURCES := $(shell find ../../api/v1/models ../../common ../../pkg/client ../../pkg/endpoint . -name '*.go') 13 14 $(TARGET): $(SOURCES) 15 @$(ECHO_GO) 16 # Compile without cgo to allow use of cilium-cni on non-glibc platforms - see GH-5055 17 $(QUIET)CGO_ENABLED=0 $(GO) build $(GOBUILD) -o $(TARGET) 18 19 install: 20 $(INSTALL) -m 0755 -d $(DESTDIR)$(CNICONFDIR) 21 $(INSTALL) -m 0644 05-cilium-cni.conf $(DESTDIR)$(CNICONFDIR) 22 $(INSTALL) -m 0755 -d $(DESTDIR)$(CNIBINDIR) 23 $(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(CNIBINDIR)