github.com/fafucoder/cilium@v1.6.11/cilium/Makefile (about) 1 include ../Makefile.quiet 2 include ../Makefile.defs 3 4 TARGET=cilium 5 SOURCES := $(shell find ../api ../daemon ../common ../pkg cmd . \( -name '*.go' ! -name '*_test.go' \)) 6 7 $(TARGET): $(SOURCES) 8 @$(ECHO_GO) 9 $(QUIET)$(GO) build $(GOBUILD) -o $(TARGET) 10 strip $(TARGET) 11 12 all: $(TARGET) 13 14 clean: 15 @$(ECHO_CLEAN) $(notdir $(shell pwd)) 16 -$(QUIET)rm -f $(TARGET) 17 $(QUIET)$(GO) clean 18 19 install: 20 $(INSTALL) -m 0755 -d $(DESTDIR)$(BINDIR) 21 $(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR) 22 $(INSTALL) -m 0755 -d $(DESTDIR)$(CONFDIR)/bash_completion.d 23 ./$(TARGET) generate-bash-completion > bash_autocomplete 24 $(INSTALL) -m 0644 -T bash_autocomplete $(DESTDIR)$(CONFDIR)/bash_completion.d/cilium