forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (22 loc) · 802 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright Authors of Cilium
# SPDX-License-Identifier: Apache-2.0
include ../Makefile.defs
TARGET := kvstoremesh
.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)
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)