summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-08-16 13:43:30 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-08-23 09:55:18 -0400
commitbf5a808fa92007c325c3996e79694badfab201d4 (patch)
treed2dd7aad2ef068d476105ce13f5960e9e7438929
parentc67e60fd1b41692dbbb575ecf5dfcefd7e2f7cb2 (diff)
downloadsssd-bf5a808fa92007c325c3996e79694badfab201d4.tar.gz
sssd-bf5a808fa92007c325c3996e79694badfab201d4.tar.bz2
sssd-bf5a808fa92007c325c3996e79694badfab201d4.zip
Don't build SSSDConfig API when configured with --without-python-bindings
-rw-r--r--Makefile.am15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 9f57cb79..7482e811 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -89,8 +89,14 @@ check_PROGRAMS = \
stress-tests \
$(non_interactive_check_based_tests)
+PYTHON_TESTS =
+
+if BUILD_PYTHON_BINDINGS
+PYTHON_TESTS += $(srcdir)/src/config/SSSDConfigTest.py
+endif
+
TESTS = \
- $(srcdir)/src/config/SSSDConfigTest.py \
+ $(PYTHON_TESTS) \
$(non_interactive_check_based_tests)
sssdlib_LTLIBRARIES = \
@@ -1003,15 +1009,20 @@ docs:
@echo "Doxygen not installed, cannot generate documentation"
@exit 1
endif
+
all-local:
+if BUILD_PYTHON_BINDINGS
cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config
+endif
install-exec-hook: installsssddirs
+if BUILD_PYTHON_BINDINGS
if [ "$(DESTDIR)" = "" ]; then \
cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --record=$(abs_builddir)/src/config/.files; \
else \
cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config install $(DISTSETUPOPTS) --prefix=$(PYTHON_PREFIX) --root=$(DESTDIR) --record=$(abs_builddir)/src/config/.files; \
fi
+endif
mkdir -p doc $(DESTDIR)/$(docdir); cp -a doc $(DESTDIR)/$(docdir)/
install-data-hook:
@@ -1027,7 +1038,9 @@ uninstall-hook:
rm -Rf $(DESTDIR)/$(docdir)/doc
clean-local:
+if BUILD_PYTHON_BINDINGS
cd $(srcdir)/src/config; $(PYTHON) setup.py build --build-base $(abs_builddir)/src/config clean --all
+endif
rm -Rf doc
CLEANFILES = *.X */*.X */*/*.X