migrate infer/Makefile

Summary:
public
Generate infer/Makefile from infer/Makefile.in to use make from autoconf.

Reviewed By: jeremydubreil

Differential Revision: D2703102

fb-gh-sync-id: ee22395
master
Jules Villard 9 years ago committed by facebook-github-bot-7
parent afa416ed4e
commit 408ec141ad

1
.gitignore vendored

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

@ -10,6 +10,9 @@ ABSOLUTE_ROOT_DIR = $(shell cd $(ROOT_DIR) && pwd)
INFER_DIR = $(ABSOLUTE_ROOT_DIR)/infer
DEPENDENCIES_DIR = $(ABSOLUTE_ROOT_DIR)/dependencies
ANNOTATIONS_DIR = $(INFER_DIR)/annotations
LIB_DIR = $(INFER_DIR)/lib
MODELS_DIR = $(INFER_DIR)/models
SRC_DIR = $(INFER_DIR)/src
JAVA_LIB_DIR = $(LIB_DIR)/java

@ -52,5 +52,6 @@ AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h locale.h malloc.h stddef.h stdint.
AC_CONFIG_FILES([
Makefile.config
Makefile
infer/Makefile
])
AC_OUTPUT

@ -1,31 +0,0 @@
SHELL := /bin/bash
CWD = $(shell pwd)
ANNOTATIONS = annotations
MODELS = models
SRCDIR = src
.PHONY: clean clang java llvm checkCopyright models
all: clang java llvm checkCopyright
java:
make -C $(SRCDIR) java
make -C $(ANNOTATIONS)
make -C $(MODELS) java
clang:
make -C $(SRCDIR) clang
make -C $(MODELS) clang
llvm:
make -C $(SRCDIR) llvm
checkCopyright:
make -C $(SRCDIR) checkCopyright
clean:
make -C $(SRCDIR) clean
make -C $(ANNOTATIONS) clean
make -C $(MODELS) clean

@ -0,0 +1,35 @@
# 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 llvm checkCopyright
java:
$(MAKE) -C $(SRC_DIR) java
$(MAKE) -C $(ANNOTATIONS_DIR)
$(MAKE) -C $(MODELS_DIR) java
clang:
$(MAKE) -C $(SRC_DIR) clang
$(MAKE) -C $(MODELS_DIR) clang
llvm:
$(MAKE) -C $(SRC_DIR) llvm
checkCopyright:
$(MAKE) -C $(SRC_DIR) checkCopyright
clean:
$(MAKE) -C $(SRC_DIR) clean
$(MAKE) -C $(ANNOTATIONS_DIR) clean
$(MAKE) -C $(MODELS_DIR) clean
.PHONY: all checkCopyright clang clean java llvm models
Loading…
Cancel
Save