summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-03-23 14:23:58 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-04-20 10:55:15 -0400
commit374bf54785365273b20690bd3792c25a44738041 (patch)
tree054e249a28321f450beef469e58fb211033c2b31 /Makefile.am
parent5cdf893b7d0991e459911145b3c9b1011d31ca6b (diff)
downloadsssd-374bf54785365273b20690bd3792c25a44738041.tar.gz
sssd-374bf54785365273b20690bd3792c25a44738041.tar.bz2
sssd-374bf54785365273b20690bd3792c25a44738041.zip
Install and uninstall all documentation
Every directory listed in SSSD_DOCS in Makefile.am will be installed as documentation.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am22
1 files changed, 19 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 8293c08e..72479024 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -409,6 +409,14 @@ if HAVE_NSS
dist_noinst_HEADERS += src/util/crypto/nss/nss_util.h
endif
+SSSD_DOCS = \
+ doc \
+ hbac_doc \
+ idmap_doc
+if BUILD_SUDO
+ SSSD_DOCS += libsss_sudo_doc
+endif
+
#####################
# Utility libraries #
#####################
@@ -1420,7 +1428,11 @@ if BUILD_PYTHON_BINDINGS
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)/
+ for doc in $(SSSD_DOCS); do \
+ mkdir -p $$doc $(DESTDIR)/$(docdir); \
+ cp -a $$doc $(DESTDIR)/$(docdir)/; \
+ done;
+
if HAVE_SYSTEMD_UNIT
mkdir -p $(DESTDIR)$(systemdunitdir)
else
@@ -1440,13 +1452,17 @@ uninstall-hook:
cat $(abs_builddir)/src/config/.files | xargs -iq rm -f $(DESTDIR)/q; \
rm $(abs_builddir)/src/config/.files ; \
fi
- rm -Rf $(DESTDIR)/$(docdir)/doc
+ for doc in $(SSSD_DOCS); do \
+ rm -Rf $(DESTDIR)/$(docdir)/$$doc; \
+ done;
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
+ for doc in $(SSSD_DOCS); do \
+ rm -Rf $$doc; \
+ done;
rm -Rf ldb_mod_test_dir
CLEANFILES = *.X */*.X */*/*.X