diff options
author | Micael Karlberg <[email protected]> | 2011-12-01 12:34:03 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-12-01 12:34:03 +0100 |
commit | d061c17e632a9f284f6336120b39b2fc4302dbcf (patch) | |
tree | d2ae92c32365dad131d6fb3d6905ea23a06a7320 /lib/megaco/Makefile | |
parent | 38bb19c5c4bdeeb4d54a62d687d9371eb7976c3f (diff) | |
parent | 4581ae6ca2e7f006f117cdbe38e1f5cc0968555e (diff) | |
download | otp-d061c17e632a9f284f6336120b39b2fc4302dbcf.tar.gz otp-d061c17e632a9f284f6336120b39b2fc4302dbcf.tar.bz2 otp-d061c17e632a9f284f6336120b39b2fc4302dbcf.zip |
Merge branch 'bmk/megaco/own_dialyzer_plt'
Diffstat (limited to 'lib/megaco/Makefile')
-rw-r--r-- | lib/megaco/Makefile | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/lib/megaco/Makefile b/lib/megaco/Makefile index 10efaf667f..9dc84c122c 100644 --- a/lib/megaco/Makefile +++ b/lib/megaco/Makefile @@ -97,9 +97,8 @@ endif CONFIGURE_OPTS = $(FLEX_SCANNER_LINENO_ENABLER) $(FLEX_SCANNER_REENTRANT_ENABLER) -MEGACO_DIA_PLT = ./priv/megaco.plt -MEGACO_DIA_PLT_LOG = $(basename $(MEGACO_DIA_PLT)).dialyzer_plt_log -MEGACO_DIA_LOG = $(basename $(MEGACO_DIA_PLT)).dialyzer_log +DIA_PLT = ./priv/plt/$(APPLICATION).plt +DIA_ANALYSIS = $(basename $(DIA_PLT)).dialyzer_analysis # ---------------------------------------------------- @@ -140,8 +139,8 @@ info: @echo "OTP_INSTALL_DIR: $(OTP_INSTALL_DIR)" @echo "APP_INSTALL_DIR: $(APP_INSTALL_DIR)" @echo "" - @echo "MEGACO_PLT = $(MEGACO_PLT)" - @echo "MEGACO_DIA_LOG = $(MEGACO_DIA_LOG)" + @echo "DIA_PLT: $(DIA_PLT)" + @echo "DIA_ANALYSIS: $(DIA_ANALYSIS)" @echo "" version: @@ -201,18 +200,18 @@ tar: $(APP_TAR_FILE) $(APP_TAR_FILE): $(APP_DIR) (cd $(APP_RELEASE_DIR); gtar zcf $(APP_TAR_FILE) $(DIR_NAME)) -dialyzer_plt: $(MEGACO_DIA_PLT) +dialyzer_plt: $(DIA_PLT) -$(MEGACO_DIA_PLT): - @echo "Building megaco plt file" +$(DIA_PLT): + @echo "Building $(APPLICATION) plt file" @dialyzer --build_plt \ --output_plt $@ \ - -r ../megaco/ebin \ - -o $(MEGACO_DIA_PLT_LOG) \ + -r ../$(APPLICATION)/ebin \ + --output $(DIA_ANALYSIS) \ --verbose -dialyzer: $(MEGACO_DIA_PLT) - (dialyzer --plt $< \ - -o $(MEGACO_DIA_LOG) \ - ../megaco/ebin \ - && (shell cat $(MEGACO_DIA_LOG))) +dialyzer: $(DIA_PLT) + @echo "Running dialyzer on $(APPLICATION)" + @dialyzer --plt $< \ + ../$(APPLICATION)/ebin \ + --verbose |