Browse Source

Add a check target

Compiles, runs tests and runs all sorts of analysis like Dialyzer.
Loïc Hoguin 10 years ago
parent
commit
f38e6e5833
2 changed files with 6 additions and 1 deletions
  1. 4 1
      core/core.mk
  2. 2 0
      plugins/dialyzer.mk

+ 4 - 1
core/core.mk

@@ -12,7 +12,7 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 
-.PHONY: all deps app rel docs install-docs tests clean distclean help erlang-mk
+.PHONY: all deps app rel docs install-docs tests check clean distclean help erlang-mk
 
 
 ERLANG_MK_VERSION = 1
 ERLANG_MK_VERSION = 1
 
 
@@ -46,6 +46,8 @@ all:: deps
 rel::
 rel::
 	@echo -n
 	@echo -n
 
 
+check:: clean app tests
+
 clean:: clean-crashdump
 clean:: clean-crashdump
 
 
 clean-crashdump:
 clean-crashdump:
@@ -70,6 +72,7 @@ help::
 		"  docs          Build the documentation for this project" \
 		"  docs          Build the documentation for this project" \
 		"  install-docs  Install the man pages for this project" \
 		"  install-docs  Install the man pages for this project" \
 		"  tests         Run the tests for this project" \
 		"  tests         Run the tests for this project" \
+		"  check         Compile and run all tests and analysis for this project" \
 		"  clean         Delete temporary and output files from most targets" \
 		"  clean         Delete temporary and output files from most targets" \
 		"  distclean     Delete all temporary and output files" \
 		"  distclean     Delete all temporary and output files" \
 		"  help          Display this help and exit" \
 		"  help          Display this help and exit" \

+ 2 - 0
plugins/dialyzer.mk

@@ -15,6 +15,8 @@ DIALYZER_OPTS ?= -Werror_handling -Wrace_conditions \
 
 
 # Core targets.
 # Core targets.
 
 
+check:: dialyze
+
 distclean:: distclean-plt
 distclean:: distclean-plt
 
 
 help::
 help::