Revision f5129a22d3ddf96fb11c9a2aa5b6c62265604470 authored by Dmitry Kharitonov on 03 June 2024, 15:09:41 UTC, committed by André Martins on 17 June 2024, 08:25:55 UTC
Signed-off-by: Dmitry Kharitonov <dmitry@isovalent.com>
1 parent 26df509
Makefile
# Copyright Authors of Cilium
# SPDX-License-Identifier: Apache-2.0
.DEFAULT_GOAL := all
ROOT_DIR := $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))")
include ${ROOT_DIR}/../Makefile.defs
# Add the ability to override variables
# ROOT_DIR changes to repo root after including Makefile.defs
-include ${ROOT_DIR}/Makefile.override
TARGET := cilium-dbg
TARGET_OLD := cilium
.PHONY: all $(TARGET) clean install
all: $(TARGET)
$(TARGET):
@$(ECHO_GO)
$(QUIET)$(GO_BUILD) -o $@
clean:
@$(ECHO_CLEAN)
-$(QUIET)rm -f $(TARGET)
$(QUIET)$(GO_CLEAN)
install: install-binary install-bash-completion-only
install-binary:
$(QUIET)$(INSTALL) -m 0755 -d $(DESTDIR)$(BINDIR)
$(QUIET)$(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)
$(QUIET)ln -frs $(DESTDIR)$(BINDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET_OLD)
install-bash-completion: $(TARGET) install-bash-completion-only
install-bash-completion-only:
$(QUIET)$(INSTALL) -m 0755 -d $(DESTDIR)$(CONFDIR)/bash_completion.d
./$(TARGET) completion bash > $(TARGET)_bash_completion
$(QUIET)$(INSTALL) -m 0644 -T $(TARGET)_bash_completion $(DESTDIR)$(CONFDIR)/bash_completion.d/$(TARGET)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...