From 41c1c78f462aa8bd254c28de0d6dd0b68c6f6571 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 13 Jan 2012 15:16:08 -0500 Subject: [PATCH] autogen.sh: Add developer bootstrap script This gives us a standard way to build from git. Move the relevant code out of the Makefile. See http://people.gnome.org/~walters/docs/build-api.txt --- Makefile | 10 +--------- autogen.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100755 autogen.sh diff --git a/Makefile b/Makefile index 6969443..26fdbc8 100644 --- a/Makefile +++ b/Makefile @@ -57,16 +57,8 @@ else clean: # if configure hasn't run, nothing to clean endif -# Recent versions of libtool require the -i option for copying auxiliary -# files (config.sub, config.guess, install-sh, ltmain.sh), while older -# versions will copy those files anyway, and don't understand -i. -LIBTOOLIZE_INSTALL = `libtoolize -n -i >/dev/null 2>/dev/null && echo -i` - configure include/builddefs: - libtoolize -c $(LIBTOOLIZE_INSTALL) -f - cp include/install-sh . - aclocal -I m4 - autoconf + ./autogen.sh ./configure \ --prefix=/ \ --exec-prefix=/ \ diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..58fa0d6 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Recent versions of libtool require the -i option for copying auxiliary +# files (config.sub, config.guess, install-sh, ltmain.sh), while older +# versions will copy those files anyway, and don't understand -i. +libtoolize_install=`libtoolize -n -i >/dev/null 2>/dev/null && echo -i` +libtoolize -c ${libtoolize_install} +cp include/install-sh . +aclocal -I m4 +autoconf -- 1.7.6.4