代码拉取完成,页面将自动刷新
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。