-
Notifications
You must be signed in to change notification settings - Fork 54
/
Makefile
52 lines (40 loc) · 1.02 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Minimum version numbers for software required to build IPFS
IPFS_MIN_GO_VERSION = 1.16
# use things in our bin before any other system binaries
export PATH := bin:$(PATH)
go_check:
@bin/check_go_version $(IPFS_MIN_GO_VERSION)
deps: go_check
go mod download
install: deps
go install
build: deps
go build
clean:
rm -rf ./ipget
uninstall:
go clean github.com/ipfs/ipget
PHONY += help go_check deps install build clean
##############################################################
# A semi-helpful help message
help:
@echo 'DEPENDENCY TARGETS:'
@echo ''
@echo ' deps - Download dependencies'
@echo ''
@echo 'BUILD TARGETS:'
@echo ''
@echo ' help - print this help message'
@echo ' build - Build binary'
@echo ' install - Build binary and install into $$GOPATH/bin'
@echo ''
@echo 'CLEANING TARGETS:'
@echo ''
@echo ' clean - Remove binary from build directory'
@echo ''
@echo 'TESTING TARGETS:'
@echo ''
@echo ' COMING SOON(TM)'
@echo ''
PHONY += help
.PHONY: $(PHONY)