@ -178,15 +178,15 @@ all: infer
infer : init $( STACKTREE_ATDGEN_STUBS ) $( INFERPRINT_ATDGEN_STUBS )
infer : init $( STACKTREE_ATDGEN_STUBS ) $( INFERPRINT_ATDGEN_STUBS )
$( OCAMLBUILD_CONFIG) -build-dir $( INFER_BUILD_DIR) $( OCAMLBUILD_NATIVE_OPTS) \
$( OCAMLBUILD_CONFIG) -build-dir $( INFER_BUILD_DIR) $( OCAMLBUILD_NATIVE_OPTS) \
$( INFER_CONFIG_TARGETS)
$( INFER_CONFIG_TARGETS)
$( COPY ) $( INFER_BUILD_DIR) /$( INFER_MAIN) .native $( INFER_BIN)
$( INSTALL_PROGRAM ) $( INFER_BUILD_DIR) /$( INFER_MAIN) .native $( INFER_BIN)
$( COPY ) $( INFER_BUILD_DIR) /$( INFERANALYZE_MAIN) .native $( INFERANALYZE_BIN)
$( INSTALL_PROGRAM ) $( INFER_BUILD_DIR) /$( INFERANALYZE_MAIN) .native $( INFERANALYZE_BIN)
$( COPY ) $( INFER_BUILD_DIR) /$( INFERPRINT_MAIN) .native $( INFERPRINT_BIN)
$( INSTALL_PROGRAM ) $( INFER_BUILD_DIR) /$( INFERPRINT_MAIN) .native $( INFERPRINT_BIN)
$( COPY ) $( INFER_BUILD_DIR) /$( INFERUNIT_MAIN) .native $( INFERUNIT_BIN)
$( INSTALL_PROGRAM ) $( INFER_BUILD_DIR) /$( INFERUNIT_MAIN) .native $( INFERUNIT_BIN)
i f e q ( $( BUILD_JAVA_ANALYZERS ) , y e s )
i f e q ( $( BUILD_JAVA_ANALYZERS ) , y e s )
$( COPY ) $( INFER_BUILD_DIR) /$( INFERJAVA_MAIN) .native $( INFERJAVA_BIN)
$( INSTALL_PROGRAM ) $( INFER_BUILD_DIR) /$( INFERJAVA_MAIN) .native $( INFERJAVA_BIN)
e n d i f
e n d i f
i f e q ( $( BUILD_C_ANALYZERS ) , y e s )
i f e q ( $( BUILD_C_ANALYZERS ) , y e s )
$( COPY ) $( INFER_BUILD_DIR) /$( INFERCLANG_MAIN) .native $( INFERCLANG_BIN)
$( INSTALL_PROGRAM ) $( INFER_BUILD_DIR) /$( INFERCLANG_MAIN) .native $( INFERCLANG_BIN)
cd $( INFER_BUILD_DIR) && $( LN_S) -f InferClang InferClang++ && cd -
cd $( INFER_BUILD_DIR) && $( LN_S) -f InferClang InferClang++ && cd -
e n d i f
e n d i f
i f e q ( $( ENABLE_OCAML_ANNOT ) , y e s )
i f e q ( $( ENABLE_OCAML_ANNOT ) , y e s )
@ -285,7 +285,7 @@ checkCopyright: $(CHECKCOPYRIGHT_BIN)
$(CHECKCOPYRIGHT_BIN) : sanitize $( BUILD_DIR ) $( CHECKCOPYRIGHT_MAIN ) .ml
$(CHECKCOPYRIGHT_BIN) : sanitize $( BUILD_DIR ) $( CHECKCOPYRIGHT_MAIN ) .ml
rebuild -quiet -r -j $( NCPU) -build-dir $( INFER_BUILD_DIR) -pkgs core_extended,str -tag thread -use-ocamlfind $( CHECKCOPYRIGHT_MAIN) .native
rebuild -quiet -r -j $( NCPU) -build-dir $( INFER_BUILD_DIR) -pkgs core_extended,str -tag thread -use-ocamlfind $( CHECKCOPYRIGHT_MAIN) .native
$( COPY ) $( INFER_BUILD_DIR) /$( CHECKCOPYRIGHT_MAIN) .native $( CHECKCOPYRIGHT_BIN)
$( INSTALL_PROGRAM ) $( INFER_BUILD_DIR) /$( CHECKCOPYRIGHT_MAIN) .native $( CHECKCOPYRIGHT_BIN)
d e f i n e g e n _ a t d g e n _ r u l e s
d e f i n e g e n _ a t d g e n _ r u l e s
# generate files using atdgen
# generate files using atdgen
@ -318,7 +318,7 @@ $(foreach atd_type,b j t v,\
d e f i n e m i r r o r _ f c p _ f i l e
d e f i n e m i r r o r _ f c p _ f i l e
$(CLANG_SOURCES)/$(notdir $(1)) : $( 1)
$(CLANG_SOURCES)/$(notdir $(1)) : $( 1)
$( INSTALL) -m 644 -C $$ < $$ @
$( INSTALL_DATA ) -C $$ < $$ @
e n d e f
e n d e f
$( foreach file , $ ( FCP_FILES_TO_MIRROR ) , $ ( eval $ ( call mirror_fcp_file ,$ ( file ) ) ) )
$( foreach file , $ ( FCP_FILES_TO_MIRROR ) , $ ( eval $ ( call mirror_fcp_file ,$ ( file ) ) ) )
@ -354,7 +354,7 @@ version: base/Version.ml.in Makefile
-e " s|@INFER_GIT_COMMIT[@]| $$ INFER_GIT_COMMIT|g " \
-e " s|@INFER_GIT_COMMIT[@]| $$ INFER_GIT_COMMIT|g " \
-e " s|@INFER_GIT_BRANCH[@]| $$ INFER_GIT_BRANCH|g " \
-e " s|@INFER_GIT_BRANCH[@]| $$ INFER_GIT_BRANCH|g " \
$< > " $$ TMPFILE " ; \
$< > " $$ TMPFILE " ; \
$( INSTALL) -m 644 -C " $$ TMPFILE " base/Version.ml; \
$( INSTALL_DATA ) -C " $$ TMPFILE " base/Version.ml; \
rm -f " $$ TMPFILE "
rm -f " $$ TMPFILE "
$(BUILD_DIR) :
$(BUILD_DIR) :