2 Star 0 Fork 0

阿里云/domain

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 995 Bytes
一键复制 编辑 原始数据 按行查看 历史
weiguang.du 提交于 2018-11-28 11:41 . change:version 1.0.0
# See LICENSE for licensing information.
PROJECT = domain
VERSION = 1.0.0
# DIALYZER = dialyzer
CHMOD = $(shell chmod +x ./rebar3)
REBAR = ./rebar3
.PHONY: compile clean version release doc
all: clean compile
compile:
@$(CHMOD)
@$(REBAR) compile
version:
@echo "Setting version:$(VERSION)"
perl -p -i -e "s/^\s*{vsn,.*/ {vsn, \"$(VERSION)\"},/g" src/${PROJECT}.app.src
perl -p -i -e "s/^{relx,.*/{relx, [{release, { ${PROJECT} , \"$(VERSION)\" },/g" rebar.config
perl -p -i -e "s/^{.*/{\"$(VERSION)\",/g" src/${PROJECT}.appup.src
@echo "Version Changed Done!"
#Generate a release
release:
@$(CHMOD)
@$(REBAR) release
console:
./_build/default/rel/${PROJECT}/bin/${PROJECT} console
doc:
@$(REBAR) edoc
clean:
@$(REBAR) clean
.PHONY: pack upgrade relup test
pack:
@$(REBAR) as ${VERSION} tar
# @$(REBAR) tar -n ${PROJECT} -i true
#Generate a release for upgrade
relup:
@$(REBAR) relup -u ${VERSION} tar
upgrade:
@$(REBAR) upgrade
test:
@$(REBAR) ct
@$(REBAR) eunit
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Erlang
1
https://gitee.com/aliyun-api/domain.git
git@gitee.com:aliyun-api/domain.git
aliyun-api
domain
domain
master

搜索帮助