aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-11-15 22:48:39 +0100
committerLoïc Hoguin <[email protected]>2017-11-15 22:48:39 +0100
commit97696004604cecd3cc0748417e2fdcffe67559b9 (patch)
tree23017be9736270c32ceda2f8f2b51be719d0e8d1 /Makefile
parent7728c624028db160edad2646f34d069d16af0869 (diff)
downloadcowlib-97696004604cecd3cc0748417e2fdcffe67559b9.tar.gz
cowlib-97696004604cecd3cc0748417e2fdcffe67559b9.tar.bz2
cowlib-97696004604cecd3cc0748417e2fdcffe67559b9.zip
Use ci.erlang.mk for managing tested Erlang versions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 24 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 41d1b33..4befa58 100644
--- a/Makefile
+++ b/Makefile
@@ -4,26 +4,40 @@ PROJECT = cowlib
PROJECT_DESCRIPTION = Support library for manipulating Web protocols.
PROJECT_VERSION = 2.0.1
+# Options.
+
#ERLC_OPTS += +bin_opt_info
ifdef HIPE
ERLC_OPTS += -smp +native
TEST_ERLC_OPTS += -smp +native
endif
-LOCAL_DEPS = crypto
DIALYZER_OPTS = -Werror_handling -Wunmatched_returns
-CI_OTP ?= OTP-19.0.7 OTP-19.1.6 OTP-19.2.3 OTP-19.3.6.2 OTP-20.0.5 OTP-20.1.3
-CI_HIPE ?= $(lastword $(CI_OTP))
-# CI_ERLLVM ?= $(CI_HIPE)
+# Dependencies.
+
+LOCAL_DEPS = crypto
-TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}' +'{parse_transform, horse_autoexport}'
TEST_DEPS = horse proper
dep_horse = git https://github.com/ninenines/horse.git master
+# CI configuration.
+
+BUILD_DEPS = ci.erlang.mk
+dep_ci.erlang.mk = git https://github.com/ninenines/ci.erlang.mk master
+DEP_EARLY_PLUGINS = ci.erlang.mk
+
+AUTO_CI_OTP ?= OTP-19+
+AUTO_CI_HIPE ?= OTP-LATEST
+# AUTO_CI_ERLLVM ?= OTP-LATEST
+
+# Standard targets.
+
include erlang.mk
-.PHONY: gen perfs
+# Compile options.
+
+TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}' +'{parse_transform, horse_autoexport}'
# Mimetypes module generator.
@@ -31,6 +45,8 @@ 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` \
@@ -54,5 +70,7 @@ ifeq ($(MAKECMDGOALS),perfs)
.NOTPARALLEL:
endif
+.PHONY: perfs
+
perfs: test-build
$(gen_verbose) erl -noshell -pa ebin -eval 'horse:app_perf($(PROJECT)), erlang:halt().'