[make] split Makefile.config.in into Makefile.autoconf.in and Makefile.config

Summary:
This will make it easier to bisect on top of this commit, as values in
Makefile.autoconf.in are not expected to change across commits, but
Makefile.config may fluctuate.

This should also make it easier to rebase stacks of diffs without having
to rerun `./autogen.sh && ./configure`.

Reviewed By: jberdine

Differential Revision: D4410077

fbshipit-source-id: 1119fb6
master
Jules Villard 8 years ago committed by Facebook Github Bot
parent a7f4aa79af
commit 4aeea1af3b

2
.gitignore vendored

@ -38,7 +38,7 @@ duplicates.txt
/config.status /config.status
/config.flags /config.flags
/configure /configure
/Makefile.config /Makefile.autoconf
/.buckversion /.buckversion
/*/.gitignore /*/.gitignore

@ -0,0 +1,55 @@
# 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@
ANT = @ANT@
ATDGEN = @ATDGEN@
bindir = @bindir@
BUCK = @BUCK@
BUILD_C_ANALYZERS = @BUILD_C_ANALYZERS@
BUILD_JAVA_ANALYZERS = @BUILD_JAVA_ANALYZERS@
CC = @CC@
CFLAGS = @CFLAGS@
CLANG_INCLUDES = @CLANG_INCLUDES@
CLANG_PREFIX = @CLANG_PREFIX@
CMAKE = @CMAKE@
CPP = @CPP@
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
ENABLE_OCAMLOPT_CUSTOM_CC = @ENABLE_OCAMLOPT_CUSTOM_CC@
ENABLE_OCAML_BINANNOT = @ENABLE_OCAML_BINANNOT@
exec_prefix = @exec_prefix@
INFER_MAJOR = @INFER_MAJOR@
INFER_MINOR = @INFER_MINOR@
INFER_PATCH = @INFER_PATCH@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
IS_FACEBOOK_TREE = @IS_FACEBOOK_TREE@
IS_RELEASE_TREE = @IS_RELEASE_TREE@
LDFLAGS = @LDFLAGS@
libdir = @libdir@
LIBS = @LIBS@
MKDIR_P_CMD = case "@MKDIR_P@" in \
./*) printf "$(ROOT_DIR)/@MKDIR_P@\n";; \
*) printf "@MKDIR_P@\n";; \
esac
MKDIR_P = $(shell $(MKDIR_P_CMD))
NCPU = @NCPU@
NDKBUILD = @NDKBUILD@
prefix = @prefix@
PYTHON_lxml = @PYTHON_lxml@
USER_JAVA_HOME = @USER_JAVA_HOME@
XCODE_SELECT = @XCODE_SELECT@
ifneq (,$(findstring s,$(MAKEFLAGS)))
# quiet mode
LN_S = @LN_S@
else
LN_S = @LN_S@ -v
endif

@ -5,57 +5,12 @@
# LICENSE file in the root directory of this source tree. An additional grant # 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. # of patent rights can be found in the PATENTS file in the same directory.
@SET_MAKE@
SHELL = bash SHELL = bash
include $(ROOT_DIR)/Makefile.autoconf
PLATFORM = $(shell uname) PLATFORM = $(shell uname)
ANT = @ANT@
ATDGEN = @ATDGEN@
bindir = @bindir@
BUCK = @BUCK@
BUILD_C_ANALYZERS = @BUILD_C_ANALYZERS@
BUILD_JAVA_ANALYZERS = @BUILD_JAVA_ANALYZERS@
CC = @CC@
CFLAGS = @CFLAGS@
CLANG_INCLUDES = @CLANG_INCLUDES@
CLANG_PREFIX = @CLANG_PREFIX@
CMAKE = @CMAKE@
CPP = @CPP@
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
ENABLE_OCAMLOPT_CUSTOM_CC = @ENABLE_OCAMLOPT_CUSTOM_CC@
ENABLE_OCAML_BINANNOT = @ENABLE_OCAML_BINANNOT@
exec_prefix = @exec_prefix@
INFER_MAJOR = @INFER_MAJOR@
INFER_MINOR = @INFER_MINOR@
INFER_PATCH = @INFER_PATCH@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
IS_FACEBOOK_TREE = @IS_FACEBOOK_TREE@
IS_RELEASE_TREE = @IS_RELEASE_TREE@
LDFLAGS = @LDFLAGS@
libdir = @libdir@
LIBS = @LIBS@
MKDIR_P_CMD = case "@MKDIR_P@" in \
./*) printf "$(ROOT_DIR)/@MKDIR_P@\n";; \
*) printf "@MKDIR_P@\n";; \
esac
MKDIR_P = $(shell $(MKDIR_P_CMD))
NCPU = @NCPU@
NDKBUILD = @NDKBUILD@
prefix = @prefix@
PYTHON_lxml = @PYTHON_lxml@
USER_JAVA_HOME = @USER_JAVA_HOME@
XCODE_SELECT = @XCODE_SELECT@
ifneq (,$(findstring s,$(MAKEFLAGS)))
# quiet mode
LN_S = @LN_S@
else
LN_S = @LN_S@ -v
endif
COPY = cp -f COPY = cp -f
COPY_DIR = cp -Rf COPY_DIR = cp -Rf
REMOVE = rm -f REMOVE = rm -f

@ -284,7 +284,7 @@ fi
AC_CHECK_PYTHON_MODULE([$PYTHON27], [lxml]) AC_CHECK_PYTHON_MODULE([$PYTHON27], [lxml])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile.config Makefile.autoconf
]) ])
AC_MSG_NOTICE([saving configure flags to ./config.flags]) AC_MSG_NOTICE([saving configure flags to ./config.flags])

Loading…
Cancel
Save