summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Bailey <jeffbailey@google.com>2014-03-14 09:04:00 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-07-16 08:43:08 +0800
commit5d46b27435464c603340179bc2dbad45358f2d14 (patch)
tree416cbfdd8d78373e67d575ff54b3d5146ce77830
parentb90b84b36d01f6663a79d9467a37cd9d6f6a68e7 (diff)
downloadtalos-petitboot-5d46b27435464c603340179bc2dbad45358f2d14.tar.gz
talos-petitboot-5d46b27435464c603340179bc2dbad45358f2d14.zip
autotools: Don't require custom automake options
We need a couple of automake options to prevent errors when regenerating Makefile.ins during source preparation. Some makefiles assume GNU make, so add 'foreign' where necessary. Also, we are building objects in subdirectories, so we need 'subdir-objects'. Modified to suit recent petitboot by Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Jeff Bailey <jeffbailey@google.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--Makefile.am2
-rwxr-xr-xbootstrap2
-rw-r--r--lib/Makefile.am2
-rw-r--r--test/parser/Makefile.am2
4 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index cc5fdfa..42921b3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,6 +12,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+AUTOMAKE_OPTIONS = foreign
+
SUBDIRS = lib discover test ui utils man
ACLOCAL_AMFLAGS = -I m4
diff --git a/bootstrap b/bootstrap
index 9f28c42..91ba8c8 100755
--- a/bootstrap
+++ b/bootstrap
@@ -40,5 +40,5 @@ sed -e s,@version@,${version},g configure.ac.in > configure.ac
aclocal
libtoolize --force --copy
autoheader
-automake --foreign --add-missing --copy
+automake --add-missing --copy
autoconf
diff --git a/lib/Makefile.am b/lib/Makefile.am
index f6009cf..5fc8911 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -12,6 +12,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+AUTOMAKE_OPTIONS = subdir-objects
+
AM_CPPFLAGS = -I$(top_srcdir)/lib $(DEFAULT_CPPFLAGS) \
-DPREFIX='"$(prefix)"'
diff --git a/test/parser/Makefile.am b/test/parser/Makefile.am
index 283b284..f0eff9e 100644
--- a/test/parser/Makefile.am
+++ b/test/parser/Makefile.am
@@ -11,7 +11,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-AUTOMAKE_OPTIONS = parallel-tests
+AUTOMAKE_OPTIONS = parallel-tests foreign
AM_CPPFLAGS = \
-I$(top_srcdir) \
OpenPOWER on IntegriCloud