aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-03-12 16:13:40 +0100
committerLoïc Hoguin <[email protected]>2015-03-12 16:13:40 +0100
commit6f9b4bbc415db026f080b10a3d3d4400801882b1 (patch)
tree760275a03de406a1b05c60282dd562f53adcb594 /Makefile
parenta8db5d9f7a21f36d4582dd083001757513e5990e (diff)
downloadcowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.gz
cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.bz2
cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.zip
Maintenance
* Update copyright years. * Update erlang.mk. * Fix triq testing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8b1d1b4..fc3b0f3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
# See LICENSE for licensing information.
PROJECT = cowlib
+#ERLC_OPTS += +bin_opt_info
+TEST_ERLC_OPTS += +'{parse_transform, eunit_autoexport}' +'{parse_transform, horse_autoexport}'
PLT_APPS = crypto
+TEST_DEPS = triq
+dep_triq = git https://github.com/krestenkrab/triq master
+
include erlang.mk
.PHONY: gen perfs
@@ -32,12 +37,15 @@ gen:
# Performance testing.
+ifeq ($(MAKECMDGOALS),perfs)
+.NOTPARALLEL:
+endif
+
deps/horse:
git clone -n -- https://github.com/extend/horse $(DEPS_DIR)/horse
cd $(DEPS_DIR)/horse ; git checkout -q master
$(MAKE) -C $(DEPS_DIR)/horse
-perfs: ERLC_OPTS += -DPERF=1 +'{parse_transform, horse_autoexport}' -DEXTRA=1
-perfs: clean deps deps/horse app
+perfs: test-build
$(gen_verbose) erl -noshell -pa ebin deps/horse/ebin \
- -eval 'horse:app_perf($(PROJECT)), init:stop().'
+ -eval 'horse:app_perf($(PROJECT)), erlang:halt().'