aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:08:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:08:12 +0000
commitf7157f45ec674b0fc3813290b7a99e9b3f090eee (patch)
treed373844b7eb4e895a971f96546cfedd017a7622c
parentf652f7612e7c2e04164db5243866f26dab54ae3e (diff)
downloadpaludis-f7157f45ec674b0fc3813290b7a99e9b3f090eee.tar.gz
paludis-f7157f45ec674b0fc3813290b7a99e9b3f090eee.tar.xz
Implement --with-clients
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac31
-rw-r--r--src/Makefile.am3
3 files changed, 36 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 49acab6..535073d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,9 @@ EXTRA_DIST = autogen.bash automake-deps-dist-hack.tmp
SUBDIRS = misc test paludis cran ebuild ruby src doc hooks eselect bash-completion zsh-completion
DISTCHECK_CONFIGURE_FLAGS = --enable-qa --enable-ruby --enable-glsa \
- --with-ruby-install-dir='$${DESTDIR}$${prefix}/ruby_dir'
+ --with-ruby-install-dir='$${DESTDIR}$${prefix}/ruby_dir' \
+ --with-repositories default \
+ --with-clients default,contrarius
automake-deps-built-hack.tmp : built-sources-subdirs
touch $@
diff --git a/configure.ac b/configure.ac
index e65a261..ccdf02e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -711,6 +711,37 @@ else
fi
dnl }}}
+dnl {{{ clients
+ALL_CLIENTS="adjutrix contrarius gtkpaludis paludis qualudis"
+DEFAULT_CLIENTS="adjutrix paludis"
+if test x"$ENABLE_QA" = "xyes" ; then
+ DEFAULT_CLIENTS="$DEFAULT_CLIENTS qualudis"
+fi
+if test "x$enable_gtk" = "xyes"; then
+ DEFAULT_CLIENTS="$DEFAULT_CLIENTS gtkpaludis"
+fi
+AC_MSG_CHECKING([which clients to build...])
+AC_ARG_WITH([clients],
+ [ --with-clients=foo,bar,...
+ Build the specified repositories:
+ default Equivalent to adjutrix,paludis
+ Also includes qualudis if --enable-qa
+ Also includes gtkpaludis if --enable-gtk
+
+ adjutrix A tool for tree querying
+ contrarius The cross toolchain creator
+ gtkpaludis The Gtk+ client (UNUSABLE)
+ paludis The Paludis console client
+ qualudis The QA console client],
+ [clients="`echo $with_clients | tr ',' ' '`"],
+ [clients="$DEFAULT_CLIENTS"])
+clients=`echo $clients | tr ' ' '\n' | sed -e "s,^default\$,$DEFAULT_CLIENTS," | tr ' ' '\n' | sort | uniq | tr '\n' ' '`
+AC_MSG_RESULT([$clients])
+BUILD_CLIENTS="$clients"
+AC_SUBST([ALL_CLIENTS])
+AC_SUBST([BUILD_CLIENTS])
+dnl }}}
+
dnl {{{ is sed gnu sed
AC_MSG_CHECKING([if we need a sed wrapper])
AC_SUBST([NEED_SED_WRAPPER])
diff --git a/src/Makefile.am b/src/Makefile.am
index 1bdf792..51291ff 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,5 @@
-SUBDIRS = . paludis gtkpaludis qualudis adjutrix contrarius
+SUBDIRS = . $(BUILD_CLIENTS)
+DIST_SUBDIRS = . $(ALL_CLIENTS)
CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
DISTCLEANFILES = console_install_task-sr.hh console_install_task-sr.cc