add toplevel Makefile

Reviewed By: jeremydubreil

Differential Revision: D2703006

fb-gh-sync-id: 04b9df8
master
Jules Villard 9 years ago committed by facebook-github-bot-7
parent dbfa1f7c69
commit afa416ed4e

1
.gitignore vendored

@ -22,6 +22,7 @@ _build
/config.status /config.status
/configure /configure
/Makefile.config /Makefile.config
/Makefile
# IntelliJ files # IntelliJ files
/scripts/.idea/ /scripts/.idea/

@ -0,0 +1,23 @@
# Copyright (c) 2015 - present Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
@SET_MAKE@
ROOT_DIR = .
include $(ROOT_DIR)/Makefile.config
all: clang java
java:
$(MAKE) -C $(INFER_DIR) java
clang:
$(MAKE) -C $(INFER_DIR) clang
clean:
$(MAKE) -C $(INFER_DIR) clean
.PHONY: all clean clang java

@ -36,6 +36,6 @@ echo ""
echo "you may now run the following commands to build Infer:" echo "you may now run the following commands to build Infer:"
echo "" echo ""
echo " ./configure" echo " ./configure"
echo " make -C infer clang java" echo " make"
echo "" echo ""
echo 'run `./configure --help` for more options' echo 'run `./configure --help` for more options'

@ -49,5 +49,8 @@ AC_ASSERT_OCAML_PKG([yojson])
# Checks for header files. # Checks for header files.
AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h locale.h malloc.h stddef.h stdint.h stdlib.h string.h sys/mount.h sys/param.h sys/socket.h sys/statfs.h sys/time.h unistd.h wchar.h wctype.h]) AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h locale.h malloc.h stddef.h stdint.h stdlib.h string.h sys/mount.h sys/param.h sys/socket.h sys/statfs.h sys/time.h unistd.h wchar.h wctype.h])
AC_CONFIG_FILES([Makefile.config]) AC_CONFIG_FILES([
Makefile.config
Makefile
])
AC_OUTPUT AC_OUTPUT

@ -36,13 +36,13 @@ fi
# We must collect at least one target, or Infer must be recompiled # We must collect at least one target, or Infer must be recompiled
([ -z "$TARGETS_TO_TEST" ] || [ -z "$TARGETS_TO_COMPILE" ]) \ ([ -z "$TARGETS_TO_TEST" ] || [ -z "$TARGETS_TO_COMPILE" ]) \
&& echo 'Infer is not compiled properly. Run make -C infer clean && make -C infer' \ && echo 'Infer is not compiled properly. Run make clean all' \
&& exit 1 && exit 1
cd $SCRIPT_DIR/.. cd $SCRIPT_DIR/..
./autogen.sh ./autogen.sh
./configure ./configure
make -C infer ${TARGETS_TO_COMPILE[@]} make ${TARGETS_TO_COMPILE[@]}
# Must clean in order to force running the tests with the latest version # Must clean in order to force running the tests with the latest version
# of infer. There is no dependency between buck targets and infer. # of infer. There is no dependency between buck targets and infer.

Loading…
Cancel
Save