aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-11-05 21:11:09 +0100
committerLoïc Hoguin <[email protected]>2013-11-05 21:11:09 +0100
commit1787a91a23c0e7dcd12d03ea421f453f33b9fb10 (patch)
treed34174349ff4bcb75d8cc534ed4cf6837d76bdad /Makefile
parent5804a877d2d4166f3fca60c59fb950b054b0ba98 (diff)
downloadcowlib-1787a91a23c0e7dcd12d03ea421f453f33b9fb10.tar.gz
cowlib-1787a91a23c0e7dcd12d03ea421f453f33b9fb10.tar.bz2
cowlib-1787a91a23c0e7dcd12d03ea421f453f33b9fb10.zip
Add Horse tests and optimize cow_date:rfc2109/1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3074904..9c9f5b7 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,10 @@ CT_SUITES = eunit
include erlang.mk
+.PHONY: gen perfs
+
+# 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
@@ -25,3 +29,15 @@ gen:
$(gen_verbose) cat $(GEN_SRC) \
| tail -n +`grep -n "%% GENERATED" $(GEN_SRC) | cut -d : -f 1` \
>> $(GEN_OUT)
+
+# Performance testing.
+
+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}'
+perfs: clean deps deps/horse app
+ $(gen_verbose) erl -noshell -pa ebin deps/horse/ebin \
+ -eval 'horse:app_perf($(PROJECT)), init:stop().'