1 Star 0 Fork 0

海峡人力云_外包/yh-public-cowlib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.62 KB
一键复制 编辑 原始数据 按行查看 历史
lizhijun 提交于 2020-06-29 14:08 . 源码提交
# See LICENSE for licensing information.
PROJECT = cowlib
PROJECT_DESCRIPTION = Support library for manipulating Web protocols.
PROJECT_VERSION = 2.9.1
# Options.
#ERLC_OPTS += +bin_opt_info
ifdef HIPE
ERLC_OPTS += -smp +native
TEST_ERLC_OPTS += -smp +native
endif
DIALYZER_OPTS = -Werror_handling -Wunmatched_returns
# Dependencies.
LOCAL_DEPS = crypto
DOC_DEPS = asciideck
TEST_DEPS = $(if $(CI_ERLANG_MK),ci.erlang.mk) base32 horse proper jsx \
structured-header-tests uritemplate-tests
dep_base32 = git https://github.com/dnsimple/base32_erlang master
dep_horse = git https://github.com/ninenines/horse.git master
dep_jsx = git https://github.com/talentdeficit/jsx v2.10.0
dep_structured-header-tests = git https://github.com/httpwg/structured-header-tests e614583397e7f65e0082c0fff3929f32a298b9f2
dep_uritemplate-tests = git https://github.com/uri-templates/uritemplate-test master
# CI configuration.
dep_ci.erlang.mk = git https://github.com/ninenines/ci.erlang.mk master
DEP_EARLY_PLUGINS = ci.erlang.mk
AUTO_CI_OTP ?= OTP-21+
AUTO_CI_HIPE ?= OTP-LATEST
# AUTO_CI_ERLLVM ?= OTP-LATEST
AUTO_CI_WINDOWS ?= OTP-21+
# Standard targets.
include erlang.mk
# Compile options.
TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}' +'{parse_transform, horse_autoexport}'
# Mimetypes module generator.
GEN_URL = http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
GEN_SRC = src/cow_mimetypes.erl.src
GEN_OUT = src/cow_mimetypes.erl
.PHONY: gen
gen:
$(gen_verbose) cat $(GEN_SRC) \
| head -n `grep -n "%% GENERATED" $(GEN_SRC) | cut -d : -f 1` \
> $(GEN_OUT)
$(gen_verbose) wget -qO - $(GEN_URL) \
| grep -v ^# \
| awk '{for (i=2; i<=NF; i++) if ($$i != "") { \
split($$1, a, "/"); \
print "all_ext(<<\"" $$i "\">>) -> {<<\"" \
a[1] "\">>, <<\"" a[2] "\">>, []};"}}' \
| sort \
| uniq -w 25 \
>> $(GEN_OUT)
$(gen_verbose) cat $(GEN_SRC) \
| tail -n +`grep -n "%% GENERATED" $(GEN_SRC) | cut -d : -f 1` \
>> $(GEN_OUT)
# Performance testing.
ifeq ($(MAKECMDGOALS),perfs)
.NOTPARALLEL:
endif
.PHONY: perfs
perfs: test-build
$(gen_verbose) erl -noshell -pa ebin -eval 'horse:app_perf($(PROJECT)), erlang:halt().'
# Prepare for the release.
prepare_tag:
$(verbose) echo -n "Most recent tag: "
$(verbose) git tag | tail -n1
$(verbose) git verify-tag `git tag | tail -n1`
$(verbose) echo -n "MAKEFILE: "
$(verbose) grep -m1 PROJECT_VERSION Makefile
$(verbose) echo -n "APP: "
$(verbose) grep -m1 vsn ebin/$(PROJECT).app | sed 's/ //g'
$(verbose) echo
$(verbose) echo "Dependencies:"
$(verbose) grep ^DEPS Makefile || echo "DEPS ="
$(verbose) grep ^dep_ Makefile || true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tmsbmall_1/yh-public-cowlib.git
git@gitee.com:tmsbmall_1/yh-public-cowlib.git
tmsbmall_1
yh-public-cowlib
yh-public-cowlib
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385