0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Update to erlang.mk 1.0.0

This commit is contained in:
Loïc Hoguin 2014-08-01 14:26:51 +02:00
parent 9e437e8119
commit 62de3a62f9
21 changed files with 608 additions and 255 deletions

View file

@ -7,19 +7,14 @@ PROJECT = cowboy
ERLC_OPTS ?= -Werror +debug_info +warn_export_all +warn_export_vars \
+warn_shadow_vars +warn_obsolete_guard +warn_missing_spec
COMPILE_FIRST = cowboy_middleware cowboy_sub_protocol
CT_SUITES = eunit http loop_handler spdy ws
CT_OPTS += -pa test -ct_hooks cowboy_ct_hook []
PLT_APPS = crypto public_key ssl
# Dependencies.
DEPS = cowlib ranch
dep_cowlib = pkg://cowlib 0.6.2
dep_ranch = pkg://ranch 0.10.0
TEST_DEPS = ct_helper gun
dep_ct_helper = https://github.com/extend/ct_helper.git master
dep_gun = pkg://gun master
dep_ct_helper = git https://github.com/extend/ct_helper.git master
# Standard targets.
@ -27,7 +22,7 @@ include erlang.mk
# Documentation.
dep_ezdoc = https://github.com/ninenines/ezdoc master
dep_ezdoc = git https://github.com/ninenines/ezdoc master
$(eval $(call dep_target,ezdoc))
build-doc-deps: $(DEPS_DIR)/ezdoc
@ -61,7 +56,7 @@ init:stop().
endef
export ezdoc_script
docs: clean-docs build-doc-deps
docs:: clean-docs build-doc-deps
@mkdir -p doc/man3 doc/man7 doc/markdown/guide doc/markdown/manual
$(gen_verbose) erl -noinput -pa ebin deps/ezdoc/ebin -eval "$$ezdoc_script"
@gzip doc/man3/*.3 doc/man7/*.7