github.com/fafucoder/cilium@v1.6.11/tools/ring-dump/Makefile (about)

     1  include ../../Makefile.defs
     2  
     3  TARGET=cilium-ring-dump
     4  SOURCES := $(shell find ../../pkg/bpf cmd . \( -name '*.go' ! -name '*_test.go' \))
     5  $(TARGET): $(SOURCES)
     6  	@$(ECHO_GO)
     7  	$(QUIET)$(GO) build $(GOBUILD) -o $(TARGET)
     8  
     9  all: $(TARGET)
    10  
    11  clean:
    12  	@$(ECHO_CLEAN)
    13  	-$(QUIET)rm -f $(TARGET)
    14  	$(QUIET)$(GO) clean
    15  
    16  install:
    17  	$(INSTALL) -m 0755 -d $(DESTDIR)$(BINDIR)
    18  	$(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)