Revision 40db178a5600ef50c518628cbe0328b8a1d058a6 authored by Martynas Pumputis on 03 November 2020, 10:23:05 UTC, committed by Martynas Pumputis on 03 November 2020, 10:23:05 UTC
Signed-off-by: Martynas Pumputis <m@lambda.lt>
1 parent 6ee319d
Makefile
# Copyright 2017-2020 Authors of Cilium
# SPDX-License-Identifier: Apache-2.0
include ../Makefile.defs
TARGET := cilium-agent
LINKS := cilium-node-monitor
all: $(TARGET) links
.PHONY: all $(TARGET) links
$(TARGET): ../Dockerfile ../Makefile ../Makefile.defs Makefile
@$(ECHO_GO)
$(QUIET)$(GO_BUILD) -o $(TARGET)
links:
$(foreach link,$(LINKS), ln -f -s $(TARGET) $(link) || cp $(TARGET) $(link);)
clean:
@$(ECHO_CLEAN)
$(QUIET)rm -f $(TARGET)
$(QUIET)$(GO_CLEAN)
$(foreach link,$(LINKS), $(QUIET)rm -f $(link);)
ifeq ("$(PKG_BUILD)","")
install:
groupadd -f cilium
$(QUIET)$(INSTALL) -m 0755 -d $(DESTDIR)$(BINDIR)
$(QUIET)$(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)
$(foreach link,$(LINKS), ln -f -s $(TARGET) $(DESTDIR)$(BINDIR)/$(link) || cp $(TARGET) $(DESTDIR)$(BINDIR)/$(link);)
else
install:
$(QUIET)$(INSTALL) -m 0755 -d $(DESTDIR)$(BINDIR)
$(QUIET)$(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)
$(foreach link,$(LINKS), ln -f -s $(TARGET) $(DESTDIR)$(BINDIR)/$(link) || cp $(TARGET) $(DESTDIR)$(BINDIR)/$(link);)
endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...