aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-25 00:23:17 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-03-25 00:23:17 +0000
commit4bc53d43077adfc930e5b20b91d4a31d105f66ba (patch)
treefeebedddde03e928cd80a6666836cf1fdad9b7eb
parent9334e28a804b6db8a360ece0fb3a40aa05822ff4 (diff)
downloadpaludis-4bc53d43077adfc930e5b20b91d4a31d105f66ba.tar.gz
paludis-4bc53d43077adfc930e5b20b91d4a31d105f66ba.tar.xz
Configurable environment building
-rw-r--r--configure.ac22
-rw-r--r--paludis/environments/Makefile.am3
2 files changed, 24 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ee86f55..9eb7931 100644
--- a/configure.ac
+++ b/configure.ac
@@ -674,6 +674,28 @@ else
fi
dnl }}}
+dnl {{{ environments
+ALL_ENVIRONMENTS="no_config paludis portage test"
+DEFAULT_ENVIRONMENTS="no_config paludis test"
+AC_MSG_CHECKING([which environments to build...])
+AC_ARG_WITH([environments],
+ [ --with-environments=foo,bar,...
+ Build the specified environments:
+ default Equivalent to no_config,paludis.test
+
+ no_config Configurationless environment, for adjutrix etc
+ paludis Standard Paludis environments
+ portage Portage configuration (UNUSABLE)
+ test For test cases],
+ [environments="`echo $with_environments | tr ',' ' '`"],
+ [environments="$DEFAULT_ENVIRONMENTS"])
+environments=`echo $environments | tr ' ' '\n' | sed -e "s,^default\$,$DEFAULT_ENVIRONMENTS," | tr ' ' '\n' | sort | uniq | tr '\n' ' '`
+AC_MSG_RESULT([$environments])
+BUILD_ENVIRONMENTS="$environments"
+AC_SUBST([ALL_ENVIRONMENTS])
+AC_SUBST([BUILD_ENVIRONMENTS])
+dnl }}}
+
dnl {{{ clients
ALL_CLIENTS="adjutrix contrarius inquisitio paludis qualudis"
DEFAULT_CLIENTS="adjutrix paludis"
diff --git a/paludis/environments/Makefile.am b/paludis/environments/Makefile.am
index deb78fa..866ef74 100644
--- a/paludis/environments/Makefile.am
+++ b/paludis/environments/Makefile.am
@@ -1,4 +1,5 @@
-SUBDIRS = paludis portage no_config test
+SUBDIRS = $(BUILD_ENVIRONMENTS)
+DIST_SUBDIRS = $(ALL_ENVIRONMENTS)
CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
MAINTAINERCLEANFILES = Makefile.in