-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (25 loc) · 765 Bytes
/
Makefile
File metadata and controls
28 lines (25 loc) · 765 Bytes
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
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
BASHCOMPLETIONSDIR = $(exec_prefix)/share/bash-completion/completions
RM = rm -f
INSTALL = install -D
MKDIRP = mkdir -p
.PHONY: install uninstall update build clean default
default: build
build:
go build
clean:
go clean
reinstall: uninstall install
install:
$(INSTALL) upf $(DESTDIR)$(bindir)/upf
$(MKDIRP) $(DESTDIR)$(BASHCOMPLETIONSDIR)
$(DESTDIR)$(bindir)/upf completion bash > $(DESTDIR)$(BASHCOMPLETIONSDIR)/upf
@echo "================================="
@echo ">> Now run the following command:"
@echo "\tsource $(DESTDIR)$(BASHCOMPLETIONSDIR)/upf"
@echo "================================="
uninstall:
$(RM) $(DESTDIR)$(bindir)/upf
$(RM) $(DESTDIR)$(BASHCOMPLETIONSDIR)/upf