Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
650eeee7
Unverified
提交
650eeee7
authored
12月 06, 2016
作者:
Jakub Sztandera
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rework tags and flags passing in Makefile
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
上级
c12f9777
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
31 行增加
和
14 行删除
+31
-14
Makefile
Makefile
+26
-6
Makefile
cmd/ipfs/Makefile
+5
-8
没有找到文件。
Makefile
浏览文件 @
650eeee7
...
@@ -3,19 +3,28 @@ IPFS_MIN_GO_VERSION = 1.7
...
@@ -3,19 +3,28 @@ IPFS_MIN_GO_VERSION = 1.7
IPFS_MIN_GX_VERSION
=
0.6
IPFS_MIN_GX_VERSION
=
0.6
IPFS_MIN_GX_GO_VERSION
=
1.1
IPFS_MIN_GX_GO_VERSION
=
1.1
GOTAGS
=
GOTAGS
+=
""
# we have to have always at least one tag, empty tag works well
GOFLAGS
=
GOTFLAGS
=
export
IPFS_REUSEPORT
=
false
export
IPFS_REUSEPORT
=
false
export
GOFLAGS
export
GOTFLAGS
GOFLAGS
+=
-tags
$
(
call join-with,
$(comma)
,
$(GOTAGS)
)
ifneq
($(COVERALLS_TOKEN),
)
ifneq
($(COVERALLS_TOKEN),
)
covertools_rule
=
covertools
covertools_rule
=
covertools
GOT
=
overalls
-project
=
github.com/ipfs/go-ipfs
-covermode
atomic
-ignore
=
.git,Godeps,thirdparty,test,core/commands,cmd
--
$(GOTFLAGS)
GOT
=
overalls
-project
=
github.com/ipfs/go-ipfs
-covermode
atomic
-ignore
=
.git,Godeps,thirdparty,test,core/commands,cmd
--
$(GO
FLAGS)
$(GO
TFLAGS)
else
else
covertools_rule
=
$
()
covertools_rule
=
GOT
=
go
test
$(GOTFLAGS)
./...
GOT
=
go
test
$(GO
FLAGS)
$(GO
TFLAGS)
./...
endif
endif
ifeq
($(TEST_NO_FUSE),1)
ifeq
($(TEST_NO_FUSE),1)
GOT
FLAGS
+=
-tags
nofuse
GOT
AGS
+=
nofuse
endif
endif
ifeq
($(OS),Windows_NT)
ifeq
($(OS),Windows_NT)
...
@@ -28,6 +37,13 @@ dist_root=/ipfs/QmNZL8wNsvAGdVYr8uGeUE9aGfHjFpHegAWywQFEdSaJbp
...
@@ -28,6 +37,13 @@ dist_root=/ipfs/QmNZL8wNsvAGdVYr8uGeUE9aGfHjFpHegAWywQFEdSaJbp
gx_bin
=
bin/gx-v0.9.0
gx_bin
=
bin/gx-v0.9.0
gx-go_bin
=
bin/gx-go-v1.3.0
gx-go_bin
=
bin/gx-go-v1.3.0
# util functions
space
=
space
+=
comma
=
,
join-with
=
$
(
subst
$(space)
,
$1
,
$
(
strip
$2
))
# use things in our bin before any other system binaries
# use things in our bin before any other system binaries
export
PATH
:=
bin:
$(PATH)
export
PATH
:=
bin:
$(PATH)
export
IPFS_API
?=
v04x.ipfs.io
export
IPFS_API
?=
v04x.ipfs.io
...
@@ -58,7 +74,7 @@ path_check:
...
@@ -58,7 +74,7 @@ path_check:
@
bin/check_go_path
$
(
realpath
$(
shell
pwd
)
)
$
(
realpath
$
(
addsuffix /src/github.com/ipfs/go-ipfs,
$
(
subst
$(GOPATH_DELIMITER)
, ,
$(GOPATH)
)))
@
bin/check_go_path
$
(
realpath
$(
shell
pwd
)
)
$
(
realpath
$
(
addsuffix /src/github.com/ipfs/go-ipfs,
$
(
subst
$(GOPATH_DELIMITER)
, ,
$(GOPATH)
)))
deps
:
go_check gx_check path_check $(covertools_rule)
deps
:
go_check gx_check path_check $(covertools_rule)
${
gx_bin
}
--verbose
install
--global
${
gx_bin
}
--verbose
install
--global
>
/dev/null 2>&1
covertools
:
covertools
:
go get
-u
github.com/mattn/goveralls
go get
-u
github.com/mattn/goveralls
...
@@ -71,7 +87,11 @@ covertools:
...
@@ -71,7 +87,11 @@ covertools:
vendor
:
godep
vendor
:
godep
godep save
-r
./...
godep save
-r
./...
install build nofuse
:
deps
nofuse
:
GOTAGS += nofuse
nofuse
:
deps
$(MAKE)
-C
cmd/ipfs install
install build
:
deps
$(MAKE)
-C
cmd/ipfs
$@
$(MAKE)
-C
cmd/ipfs
$@
clean
:
clean
:
...
...
cmd/ipfs/Makefile
浏览文件 @
650eeee7
COMMIT
:=
$(
shell
git rev-parse
--short
HEAD
)
COMMIT
:=
$(
shell
git rev-parse
--short
HEAD
)
ldflags
=
"-X "
github.com/ipfs/go-ipfs/repo/config
".CurrentCommit=
$(COMMIT)
"
GOFLAGS
+=
-ldflags
=
"-X "
github.com/ipfs/go-ipfs/repo/config
".CurrentCommit=
$(COMMIT)
"
all
:
install
all
:
install
install
:
install
:
go install
-ldflags
=
$(ldflags
)
go install
$(GOFLAGS
)
build
:
build
:
go build
-i
-ldflags
=
$(ldflags)
go build
-i
$(GOFLAGS)
nofuse
:
go install
-tags
nofuse
-ldflags
=
$(ldflags)
clean
:
clean
:
go clean
-ldflags
=
$(ldflags
)
go clean
$(GOFLAGS
)
uninstall
:
uninstall
:
go clean
-i
-ldflags
=
$(ldflags
)
go clean
-i
$(GOFLAGS
)
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论