File 0001-operator-make-Add-install-target.patch of Package cilium

From 36059fb7b4282da8e8674937fee986d1c88c486d Mon Sep 17 00:00:00 2001
From: Michal Rostecki <mrostecki@opensuse.org>
Date: Fri, 19 Jun 2020 13:07:46 +0200
Subject: [PATCH] operator: make: Add install target

Add `install` make target which installs cilium-operator binaries.

Fixes: #12184
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
---
 operator/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/operator/Makefile b/operator/Makefile
index dc88e5f80..8da5d7ea0 100644
--- a/operator/Makefile
+++ b/operator/Makefile
@@ -26,3 +26,7 @@ clean:
 	@$(ECHO_CLEAN)
 	$(QUIET)rm -f $(TARGETS)
 	$(GO) clean $(GOCLEAN)
+
+install: $(TARGETS)
+	$(QUIET)$(INSTALL) -m 0755 -d $(DESTDIR)$(BINDIR)
+	$(foreach target,$(TARGETS), $(QUIET)$(INSTALL) -m 0755 $(target) $(DESTDIR)$(BINDIR);)
-- 
2.29.0
openSUSE Build Service is sponsored by