summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2010-05-03 14:51:20 +0200
committerJulien Danjou <julien@danjou.info>2010-05-05 11:04:12 +0200
commit824b3cdce7ee6abecdda9cb3fdef086f8c4c9a7a (patch)
treec9e60caabda1dec513c808e1764c79fcb8fe482b
parent26010a37d1196ada662c239f33eef41396b9b353 (diff)
Generate stubs.c via Makefile
Signed-off-by: Julien Danjou <julien@danjou.info> Reviewed-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--Makefile.am3
-rwxr-xr-xautogen.sh2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index e1e1ec8..6d59f4e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,6 +2,9 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pthread-stubs.pc
if BUILD_LIB
+stubs.c: list.m4 stubs.c.m4
+ m4 -P stubs.c.m4 > $@
+
lib_LTLIBRARIES = libpthread-stubs.la
libpthread_stubs_la_SOURCES = stubs.c
endif
diff --git a/autogen.sh b/autogen.sh
index 44e664c..904cd67 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,8 +6,6 @@ test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
-m4 -P stubs.c.m4 >stubs.c
-
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?