Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
f2dcad85
提交
f2dcad85
authored
8月 16, 2016
作者:
Jeromy Johnson
提交者:
GitHub
8月 16, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2999 from ipfs/feature/makefile-cleanup
Cleanup makefiles
上级
f9f136a6
cc60f690
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
26 行增加
和
30 行删除
+26
-30
Makefile
Makefile
+10
-15
Makefile
test/Makefile
+11
-10
Makefile
test/sharness/Makefile
+5
-5
没有找到文件。
Makefile
浏览文件 @
f2dcad85
...
...
@@ -57,20 +57,15 @@ deps: go_check gx_check path_check
vendor
:
godep
godep save
-r
./...
install
:
deps
make
-C
cmd/ipfs install
build
:
deps
make
-C
cmd/ipfs build
nofuse
:
deps
make
-C
cmd/ipfs nofuse
install build nofuse
:
deps
$(MAKE)
-C
cmd/ipfs
$@
clean
:
make
-C
cmd/ipfs clean
$(MAKE)
-C
cmd/ipfs clean
$(MAKE)
-C
test
clean
uninstall
:
make
-C
cmd/ipfs uninstall
$(MAKE)
-C
cmd/ipfs uninstall
PHONY
+=
all
help
godep gx_check
PHONY
+=
go_check deps vendor install build nofuse clean uninstall
...
...
@@ -97,16 +92,16 @@ test_go_race:
$(go_test)
./...
-race
test_sharness_short
:
make
-C
test
/sharness/
$(MAKE)
-j1
-C
test
/sharness/
test_sharness_expensive
:
TEST_EXPENSIVE
=
1
make
-C
test
/sharness/
TEST_EXPENSIVE
=
1
$(MAKE)
-j1
-C
test
/sharness/
test_all_commits
:
@
echo
"testing all commits between origin/master..HEAD"
@
echo
"WARNING: this will 'git rebase --exec'."
@
test
/bin/continueyn
GIT_EDITOR
=
true
git rebase
-i
--exec
"
make
test"
origin/master
GIT_EDITOR
=
true
git rebase
-i
--exec
"
$(MAKE)
test"
origin/master
test_all_commits_travis
:
# these are needed because travis.
...
...
@@ -114,12 +109,12 @@ test_all_commits_travis:
git config
--global
user.email
"nemo@ipfs.io"
git config
--global
user.name
"IPFS BOT"
git fetch origin master:master
GIT_EDITOR
=
true
git rebase
-i
--exec
"
make
test"
master
GIT_EDITOR
=
true
git rebase
-i
--exec
"
$(MAKE)
test"
master
# since we have CI for osx and linux but not windows, this should help
windows_build_check
:
GOOS
=
windows
GOARCH
=
amd64 go build
-o
.test.ipfs.exe ./cmd/ipfs
rm .test.ipfs.exe
rm
-f
.test.ipfs.exe
PHONY
+=
test
test_short test_expensive
...
...
test/Makefile
浏览文件 @
f2dcad85
...
...
@@ -15,12 +15,13 @@ GOFLAGS =
all
:
deps
global-deps
:
make
-C
.. deps
$(MAKE)
-C
.. deps
deps
:
global-deps bins
clean
:
rm
$(BINS)
$(MAKE)
-C
sharness clean
rm
-rf
$(BINS)
bins
:
$(BINS)
...
...
@@ -71,18 +72,18 @@ bin/iptb: iptb_src $(call find_go_files, $(IPTB_SRC)) IPFS-BUILD-OPTIONS
test
:
test_expensive
test_expensive
:
verify_gofmt
cd
sharness
&&
make
TEST_EXPENSIVE
=
1
cd
3nodetest
&&
make
cd
dependencies
&&
make
$(MAKE)
-C
sharness
TEST_EXPENSIVE
=
1
$(MAKE)
-C
3nodetest
$(MAKE)
-C
dependencies
test_cheap
:
verify_gofmt
cd
sharness
&&
make
cd
3nodetest
&&
make
$(MAKE)
-C
sharness
$(MAKE)
-C
3nodetest
test_race
:
verify_gofmt
cd
sharness
&&
make
GOFLAGS
=
-race
TEST_EXPENSIVE
=
1
cd
3nodetest
&&
make
GOFLAGS
=
-race
cd
dependencies
&&
make
GOFLAGS
=
-race
$(MAKE)
-C
sharness
GOFLAGS
=
-race
TEST_EXPENSIVE
=
1
$(MAKE)
-C
3nodetest
GOFLAGS
=
-race
$(MAKE)
-C
dependencies
GOFLAGS
=
-race
# Misc
...
...
test/sharness/Makefile
浏览文件 @
f2dcad85
...
...
@@ -19,11 +19,11 @@ all: aggregate
clean
:
clean-test-results
@
echo
"***
$@
***"
-
rm
-rf
$(BINS)
rm
-rf
$(BINS)
clean-test-results
:
@
echo
"***
$@
***"
-
rm
-rf
test-results
rm
-rf
test-results
$(T)
:
clean-test-results deps
@
echo
"***
$@
***"
...
...
@@ -34,7 +34,7 @@ aggregate: clean-test-results $(T)
lib/test-aggregate-results.sh
global-deps
:
make
-C
../.. deps
$(MAKE)
-C
../.. deps
deps
:
global-deps $(SHARNESS) $(BINS) curl
...
...
@@ -43,10 +43,10 @@ $(SHARNESS): FORCE
lib/install-sharness.sh
bin/%
:
FORCE
cd
..
&&
make
GOFLAGS
=
$(GOFLAGS)
$@
$(MAKE)
-C
..
GOFLAGS
=
$(GOFLAGS)
$@
race
:
make
GOFLAGS
=
-race
all
$(MAKE)
GOFLAGS
=
-race
all
.PHONY
:
all clean $(T) aggregate FORCE
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论