From 3b3a47b798b80c78446d9f062d311bcca135b177 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 3 Aug 2009 19:58:55 +0100 Subject: Make distcheck pass from a clean tree --- Makefile.am | 5 ++--- configure.ac | 3 +++ dev/Makefile.am | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index bf4205d..04358f9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = src include fdi swig $(DEV_SUB) tools +SUBDIRS = src include fdi swig dev tools DISTCHECK_CONFIGURE_FLAGS = --enable-dev-tools @@ -8,9 +8,8 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libiphone-1.0.pc EXTRA_DIST= docs -dist-hook: doc -doc: +docs: rm -fr docs doxygen doxygen.cfg diff --git a/configure.ac b/configure.ac index d6b27f4..55f5bae 100644 --- a/configure.ac +++ b/configure.ac @@ -59,6 +59,9 @@ if test "$build_dev_tools" = true; then else DEV_SUB= fi + +AM_CONDITIONAL([ENABLE_DEVTOOLS],[test "x$DEV_SUB" = "xdev"]) + AC_SUBST([DEV_SUB]) AC_ARG_ENABLE([debug-code], diff --git a/dev/Makefile.am b/dev/Makefile.am index c41b663..b71c212 100644 --- a/dev/Makefile.am +++ b/dev/Makefile.am @@ -3,6 +3,7 @@ INCLUDES = -I$(top_srcdir)/include AM_CFLAGS = $(GLOBAL_CFLAGS) $(libglib2_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(libgthread2_CFLAGS) $(LFS_CFLAGS) AM_LDFLAGS = $(libglib2_LIBS) $(libgnutls_LIBS) $(libtasn1_LIBS) $(libgthread2_LIBS) +if ENABLE_DEVTOOLS noinst_PROGRAMS = iphoneclient lckd-client afccheck msyncclient iphoneenterrecovery iphoneclient_SOURCES = iphoneclient.c @@ -27,3 +28,7 @@ iphoneenterrecovery_SOURCES = iphoneenterrecovery.c iphoneenterrecovery_CFLAGS = $(AM_CFLAGS) iphoneenterrecovery_LDFLAGS = $(AM_LDFLAGS) iphoneenterrecovery_LDADD = ../src/libiphone.la + +endif # ENABLE_DEVTOOLS + +EXTRA_DIST = iphoneclient.c lckdclient.c afccheck.c msyncclient.c iphoneenterrecovery.c -- cgit v1.1-32-gdbae