mysql makefile_Makefile

# MySQL/OTP

#

# This Makefile should be complete enough for this project to be used as an

# erlang.mk dependency.

#

# Additional targets:

#

# - tests-report: Creates doc/eunit.html with the coverage and eunit output.

# - gh-pages: Generates docs and eunit reports and commits these in the

# gh-pages which Github publishes automatically when pushed.

# - CHANGELOG.md: Generates a changelog from the git commits and tags.

.PHONY: gh-pages tests-report tests-prep CHANGELOG.md

PROJECT = mysql

EDOC_OPTS = {stylesheet_file,"priv/edoc-style.css"},{todo,true}

EUNIT_OPTS = {verbose,true}

PLT_APPS = crypto ssl inets public_key

SHELL_PATH = -pa ebin

ERLANG_MK_BUILD_CONFIG = erlang-mk.build.config

include erlang.mk

# Generate keys for SSL tests. Requires configuring and restarting MySQL.

tests-prep:

$(MAKE) -C test/ssl

distclean::

$(MAKE) -C test/ssl clean

CHANGELOG.md:

./changelog.sh > $@

# Update the local 'gh-pages' branch with pregenerated output files

# (trick from https://groups.google.com/forum/#!topic/github/XYxkdzxpgCo)

gh-pages: docs tests-report

@if [ $$(git name-rev --name-only HEAD) != master ] ; then \

echo "Not on master. Aborting." ; \

false ; \

fi

@git update-ref refs/heads/gh-pages origin/gh-pages '' 2>/dev/null || true

@GIT_INDEX_FILE=gitindex.tmp; export GIT_INDEX_FILE; \

rm -f $${GIT_INDEX_FILE} && \

git add -f doc/*.html doc/stylesheet.css doc/erlang.png && \

git update-ref refs/heads/gh-pages \

$$(echo "Autogenerated html pages for $$(git describe --tags)" \

| git commit-tree $$(git write-tree --prefix=doc) \

-p refs/heads/gh-pages)

@rm gitindex.tmp

@echo "Committed $$(git describe --tags) in the gh-pages branch."

# Build eunit.html containing the coverage report and the test output in the

# doc directory.

tests-report: test_command=$(MAKE) --no-print-directory tests COVER=1 \

COVER_REPORT_DIR=

tests-report:

@rm -f cover/*.html

@$(test_command) | tee tests.output

@$(MAKE) --no-print-directory cover-report

@(cat cover/index.html | sed 's!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值