Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
5b176542
提交
5b176542
authored
4月 30, 2016
作者:
Christian Couder
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test/Makefile: use `gx deps find` for gx dependencies
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
上级
728e74ce
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
10 行删除
+26
-10
Makefile
test/Makefile
+26
-10
没有找到文件。
test/Makefile
浏览文件 @
5b176542
...
...
@@ -4,11 +4,11 @@ IPFS_ROOT = ../
IPFS_CMD
=
../cmd/ipfs
RANDOM_SRC
=
../Godeps/_workspace/src/github.com/jbenet/go-random
RANDOM_FILES_SRC
=
../Godeps/_workspace/src/github.com/jbenet/go-random-files
MULTIHASH_SRC
=
../../../../gx/ipfs/QmYf7ng2hG5XBtJA3tN34DQ2GUN5HNksEw1rLDkmr6vGku/go-multihash
IPTB_SRC
=
../../../../gx/ipfs/QmccSTNEUYSJsDSHZj3uKS3pPYCRXCNxr4X8Ub1TQyKPsZ/iptb
POLLENDPOINT_SRC
=
../thirdparty/pollEndpoint
GOSLEEP_SRC
=
./dependencies/go-sleep
GX_RELATIVE_PATH
=
../../../../gx/ipfs
# User might want to override those on the command line
GOFLAGS
=
...
...
@@ -26,6 +26,8 @@ bins: $(BINS)
find_go_files
=
$(
shell
find
$
(
1
)
-name
"*.go"
)
# Non gx dependencies
bin/random
:
$(call find_go_files
,
$(RANDOM_SRC)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/random
$(RANDOM_SRC)
/random
...
...
@@ -34,10 +36,6 @@ bin/random-files:
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/random-files
$(RANDOM_FILES_SRC)
/random-files
bin/multihash
:
$(call find_go_files
,
$(MULTIHASH_SRC)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/multihash
$(MULTIHASH_SRC)
/multihash
bin/ipfs
:
$(call find_go_files
,
$(IPFS_ROOT)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/ipfs
$(IPFS_CMD)
...
...
@@ -46,14 +44,30 @@ bin/pollEndpoint: $(call find_go_files, $(POLLENDPOINT_SRC)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/pollEndpoint
$(POLLENDPOINT_SRC)
bin/iptb
:
$(call find_go_files
,
$(IPTB_SRC)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/iptb
$(IPTB_SRC)
bin/go-sleep
:
$(call find_go_files
,
$(GOSLEEP_SRC)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/go-sleep
$(GOSLEEP_SRC)
# gx dependencies
multihash_src
:
$
(
eval
MULTIHASH_HASH :
=
$(
shell
cd
..
&&
gx deps find go-multihash
)
)
$
(
eval
MULTIHASH_SRC :
=
$(GX_RELATIVE_PATH)
/
$(MULTIHASH_HASH)
/go-multihash
)
bin/multihash
:
multihash_src $(call find_go_files
,
$(MULTIHASH_SRC)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/multihash
$(MULTIHASH_SRC)
/multihash
iptb_src
:
$
(
eval
IPTB_HASH :
=
$(
shell
cd
..
&&
gx deps find iptb
)
)
$
(
eval
IPTB_SRC :
=
$(GX_RELATIVE_PATH)
/
$(IPTB_HASH)
/iptb
)
bin/iptb
:
iptb_src $(call find_go_files
,
$(IPTB_SRC)) IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/iptb
$(IPTB_SRC)
# Tests
test
:
test_expensive
test_expensive
:
verify_gofmt
...
...
@@ -70,6 +84,8 @@ test_race: verify_gofmt
cd
3nodetest
&&
make
GOFLAGS
=
-race
cd
dependencies
&&
make
GOFLAGS
=
-race
# Misc
coverage
:
coverage_sharness
coverage_sharness
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论