加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
# Copyright (c) 2014, Anthony Ramine <n.oxyde@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ERL = erl
DIALYZER = dialyzer
CT_RUN = ct_run
PLT = .mouture_plt
COVER_SPEC = test/cover.spec
CTLOGDIR = logs
CTFLAGS = \
-noinput \
-batch \
-cover test/cover.spec \
-pa `pwd`/ebin \
-dir test \
-logdir $(CTLOGDIR)
.PHONY: all
all:
@$(ERL) -make
.PHONY: clean
clean:
@rm -rf ebin/*.beam logs test/*.beam
.PHONY: dialyze
dialyze: all $(PLT)
@$(DIALYZER) --plt $(PLT) -r ebin
.PHONY: plt
plt: $(PLT)
$(PLT):
@$(DIALYZER) --build_plt --apps kernel stdlib --output_plt $@
.PHONY: test
test: all $(CTLOGDIR)
@$(CT_RUN) $(CTFLAGS) -suite test/*_SUITE.erl
$(CTLOGDIR):
@mkdir $@
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化