6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek# The following variable is dependent on placement of this file
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozektop_builddir = ../..
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek############
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek# MANPAGES #
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek############
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
4182b3a1f9f6e1823db9832533c6c9e51d13da8eJakub Hrozek
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek# If no conditions are given, *all* conditionals are expanded. We don't want
4182b3a1f9f6e1823db9832533c6c9e51d13da8eJakub Hrozek# to include any conditions by default, so we need to pass a phony conditional
4182b3a1f9f6e1823db9832533c6c9e51d13da8eJakub Hrozekif BUILD_SUDO
4182b3a1f9f6e1823db9832533c6c9e51d13da8eJakub Hrozek# conditionals are delimeted with a semicolon
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub HrozekSUDO_CONDS = ;with_sudo
4182b3a1f9f6e1823db9832533c6c9e51d13da8eJakub Hrozekendif
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozekif BUILD_AUTOFS
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub HrozekAUTOFS_CONDS = ;with_autofs
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozekendif
af5a58fc3811af8521721f731d8234d983042ceaJan Cholastaif BUILD_SSH
af5a58fc3811af8521721f731d8234d983042ceaJan CholastaSSH_CONDS = ;with_ssh
af5a58fc3811af8521721f731d8234d983042ceaJan Cholastaendif
a8781a38b5fca84647d59199fd0b0b4b2d4624e0Sumit Boseif BUILD_PAC_RESPONDER
a8781a38b5fca84647d59199fd0b0b4b2d4624e0Sumit BosePAC_RESPONDER_CONDS = ;with_pac_responder
a8781a38b5fca84647d59199fd0b0b4b2d4624e0Sumit Boseendif
cb4d5b588e704114b7090678752d33512baa718eJakub Hrozekif BUILD_IFP
cb4d5b588e704114b7090678752d33512baa718eJakub HrozekIFP_CONDS = ;with_ifp
cb4d5b588e704114b7090678752d33512baa718eJakub Hrozekendif
54c64aad71e6792edb7cf99988d9a7f4bc2b0c61Jakub Hrozekif BUILD_SECRETS
54c64aad71e6792edb7cf99988d9a7f4bc2b0c61Jakub HrozekSEC_CONDS = ;with_secrets
54c64aad71e6792edb7cf99988d9a7f4bc2b0c61Jakub Hrozekendif
ba89271f594e5ed381b4dcb876a2d2787cf51902Jakub Hrozekif BUILD_SECRETS
ba89271f594e5ed381b4dcb876a2d2787cf51902Jakub HrozekKCM_CONDS = ;with_kcm
ba89271f594e5ed381b4dcb876a2d2787cf51902Jakub Hrozekendif
f199c749197532fd3380fa6f5d9f7a579879c21aJustin Stephensonif BUILD_SYSTEMTAP
f199c749197532fd3380fa6f5d9f7a579879c21aJustin StephensonSTAP_CONDS = ;with_stap
f199c749197532fd3380fa6f5d9f7a579879c21aJustin Stephensonendif
772464c842968d6e544118ae1aa7c49a7cda2ad6Stephen Gallagherif GPO_DEFAULT_ENFORCING
772464c842968d6e544118ae1aa7c49a7cda2ad6Stephen GallagherGPO_CONDS = ;gpo_default_enforcing
772464c842968d6e544118ae1aa7c49a7cda2ad6Stephen Gallagherelse
772464c842968d6e544118ae1aa7c49a7cda2ad6Stephen GallagherGPO_CONDS = ;gpo_default_permissive
772464c842968d6e544118ae1aa7c49a7cda2ad6Stephen Gallagherendif
9cd29d64f1c556fd222491a34229393b4462f126Fabiano Fidêncioif HAVE_SYSTEMD_UNIT
9cd29d64f1c556fd222491a34229393b4462f126Fabiano FidêncioSYSTEMD_CONDS = ;have_systemd
9cd29d64f1c556fd222491a34229393b4462f126Fabiano Fidêncioendif
78bb3676fe8326e0fe2b60daad8bf524e4625d4eJakub Hrozekif ADD_FILES_DOMAIN
78bb3676fe8326e0fe2b60daad8bf524e4625d4eJakub HrozekFILES_CONDS = ;enable_files_domain
78bb3676fe8326e0fe2b60daad8bf524e4625d4eJakub Hrozekelse
78bb3676fe8326e0fe2b60daad8bf524e4625d4eJakub HrozekFILES_CONDS = ;no_enable_files_domain
78bb3676fe8326e0fe2b60daad8bf524e4625d4eJakub Hrozekendif
f199c749197532fd3380fa6f5d9f7a579879c21aJustin StephensonCONDS = with_false$(SUDO_CONDS)$(AUTOFS_CONDS)$(SSH_CONDS)$(PAC_RESPONDER_CONDS)$(IFP_CONDS)$(GPO_CONDS)$(SEC_CONDS)$(SYSTEMD_CONDS)$(FILES_CONDS)$(KCM_CONDS)$(STAP_CONDS)
9e80079370ff3b943832adc3c5ef430e64be0a0cJakub Hrozek
4182b3a1f9f6e1823db9832533c6c9e51d13da8eJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek#Special Rules:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekexport SGML_CATALOG_FILES
4d81fe27ced3d2e96866aeaf61661a925cb8edf1Jakub HrozekDOCBOOK_XSLT = @DOCBOOK_XSLT@
4d81fe27ced3d2e96866aeaf61661a925cb8edf1Jakub HrozekDOCBOOK_XSLT ?= http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
b772ceb6e5cdda62aa98d4fc61f4800b9779b74aLukas SlebodnikXMLLINT_FLAGS = --catalogs --postvalid --nonet --noent --xinclude --noout
4d81fe27ced3d2e96866aeaf61661a925cb8edf1Jakub HrozekXSLTPROC_FLAGS = --catalogs --xinclude --nonet
4d81fe27ced3d2e96866aeaf61661a925cb8edf1Jakub Hrozek
4d81fe27ced3d2e96866aeaf61661a925cb8edf1Jakub Hrozekif HAVE_PROFILE_CATALOGS
4d81fe27ced3d2e96866aeaf61661a925cb8edf1Jakub HrozekXSLTPROC_FLAGS += --stringparam profile.condition "$(CONDS)"
4d81fe27ced3d2e96866aeaf61661a925cb8edf1Jakub Hrozekendif
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
9675aa73c7cb0c918038a7e177895b67ce135bedStephen GallagherEXTRA_DIST = $(wildcard $(srcdir)/*.xml) $(wildcard $(srcdir)/include/*.xml)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekman_MANS = \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek sss_useradd.8 sss_userdel.8 sss_usermod.8 \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek sss_groupadd.8 sss_groupdel.8 sss_groupmod.8 \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek sssd.8 sssd.conf.5 sssd-ldap.5 \
db36dca3d45e6eefbb30042ee65876566f1a6014Sumit Bose sssd-krb5.5 sssd-simple.5 sss-certmap.5 \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek sssd_krb5_locator_plugin.8 sss_groupshow.8 \
97216f0129366ac4850f62dac104b8d280ba517aNoam Meltzer pam_sss.8 sss_obfuscate.8 sss_cache.8 sss_debuglevel.8 sss_seed.8 \
27c30eb5f046d6c43276b139706110906cdacb9bNikolai Kondrashov sss_override.8 idmap_sss.8 sssctl.8 sssd-session-recording.5 \
97216f0129366ac4850f62dac104b8d280ba517aNoam Meltzer $(NULL)
9675aa73c7cb0c918038a7e177895b67ce135bedStephen Gallagher
4b9c236008b35d2155b94635a236ce7770db4728Nikolai Kondrashovif BUILD_SAMBA
4b9c236008b35d2155b94635a236ce7770db4728Nikolai Kondrashovman_MANS += sssd-ipa.5 sssd-ad.5
4b9c236008b35d2155b94635a236ce7770db4728Nikolai Kondrashovendif
4b9c236008b35d2155b94635a236ce7770db4728Nikolai Kondrashov
2ebb3cf3d7062860343c3db1b53173c9c6547038Jan Cholastaif BUILD_SSH
9675aa73c7cb0c918038a7e177895b67ce135bedStephen Gallagherman_MANS += sss_ssh_authorizedkeys.1 sss_ssh_knownhostsproxy.1
2ebb3cf3d7062860343c3db1b53173c9c6547038Jan Cholastaendif
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
8a2a49333b7df3a4b86db42cd20ec8286d2788d3Pavel Březinaif BUILD_SUDO
8a2a49333b7df3a4b86db42cd20ec8286d2788d3Pavel Březinaman_MANS += sssd-sudo.5
8a2a49333b7df3a4b86db42cd20ec8286d2788d3Pavel Březinaendif
8a2a49333b7df3a4b86db42cd20ec8286d2788d3Pavel Březina
cb4d5b588e704114b7090678752d33512baa718eJakub Hrozekif BUILD_IFP
cb4d5b588e704114b7090678752d33512baa718eJakub Hrozekman_MANS += sssd-ifp.5
cb4d5b588e704114b7090678752d33512baa718eJakub Hrozekendif
cb4d5b588e704114b7090678752d33512baa718eJakub Hrozek
54c64aad71e6792edb7cf99988d9a7f4bc2b0c61Jakub Hrozekif BUILD_SECRETS
54c64aad71e6792edb7cf99988d9a7f4bc2b0c61Jakub Hrozekman_MANS += sssd-secrets.5
54c64aad71e6792edb7cf99988d9a7f4bc2b0c61Jakub Hrozekendif
54c64aad71e6792edb7cf99988d9a7f4bc2b0c61Jakub Hrozek
ba89271f594e5ed381b4dcb876a2d2787cf51902Jakub Hrozekif BUILD_KCM
ba89271f594e5ed381b4dcb876a2d2787cf51902Jakub Hrozekman_MANS += sssd-kcm.8
ba89271f594e5ed381b4dcb876a2d2787cf51902Jakub Hrozekendif
ba89271f594e5ed381b4dcb876a2d2787cf51902Jakub Hrozek
f199c749197532fd3380fa6f5d9f7a579879c21aJustin Stephensonif BUILD_SYSTEMTAP
f199c749197532fd3380fa6f5d9f7a579879c21aJustin Stephensonman_MANS += sssd-systemtap.5
f199c749197532fd3380fa6f5d9f7a579879c21aJustin Stephensonendif
f199c749197532fd3380fa6f5d9f7a579879c21aJustin Stephenson
38e8362ba7b0403527403d79b36d03a5dbd621acJakub Hrozekif BUILD_NFS_IDMAP
38e8362ba7b0403527403d79b36d03a5dbd621acJakub Hrozekman_MANS += sss_rpcidmapd.5
38e8362ba7b0403527403d79b36d03a5dbd621acJakub Hrozekendif
38e8362ba7b0403527403d79b36d03a5dbd621acJakub Hrozek
da95ec568a941c85982e30611398efb86bc884abJakub Hrozekif HAVE_INOTIFY
da95ec568a941c85982e30611398efb86bc884abJakub Hrozekman_MANS += sssd-files.5
da95ec568a941c85982e30611398efb86bc884abJakub Hrozekendif
da95ec568a941c85982e30611398efb86bc884abJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekSUFFIXES = .1.xml .1 .3.xml .3 .5.xml .5 .8.xml .8
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek.1.xml.1:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XMLLINT) $(XMLLINT_FLAGS) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek.3.xml.3:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XMLLINT) $(XMLLINT_FLAGS) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek.5.xml.5:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XMLLINT) $(XMLLINT_FLAGS) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek.8.xml.8:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XMLLINT) $(XMLLINT_FLAGS) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(DOCBOOK_XSLT) $<
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek########################
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek# MANPAGE TRANSLATIONS #
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek########################
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekPO4A=@PO4A@
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekSED=@SED@
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekPACKAGE_DOC=sssd-docs
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekPOTFILE = po/$(PACKAGE_DOC).pot
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekPO4A_CONFIG = po/po4a.cfg
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek# Extract the list of languages from the po4a config file.
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekLINGUAS_DIST = `$(SED) -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/$(PO4A_CONFIG)`
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek# If the user has not defined it let's use the default.
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekLINGUAS ?= $(LINGUAS_DIST)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekPO4A_COMMON_OPTS = --option doctype=docbook \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek --package-name $(PACKAGE_DOC) \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek --variable builddir=$(CURDIR) \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek --package-version $(PACKAGE_VERSION) \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek --msgid-bugs-address sssd-devel@redhat.com \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek --copyright-holder "Red Hat"
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekPO4A_BUILD_OPTS = $(PO4A_COMMON_OPTS) --no-backups
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub HrozekEXTRA_DIST += \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(POTFILE)\
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(PO4A_CONFIG)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
7dee0a3366c21ad06720176ca8aef8d6a6f0da90Stephen GallagherXML_DOC = $(wildcard $(srcdir)/*.xml) $(wildcard $(srcdir)/include/*.xml)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekif HAVE_PO4A
1c1b73f82d98d3289b924f3ea499157195660af0Jakub HrozekCFG_PAGES = $(addprefix $(srcdir)/, $(shell grep '\[type:docbook\]' $(PO4A_CONFIG) | awk '{print $$2}' | tr '\n' ' '))
1c1b73f82d98d3289b924f3ea499157195660af0Jakub HrozekNONTRANSLATED_PAGES = $(filter-out $(CFG_PAGES), $(XML_DOC))
1c1b73f82d98d3289b924f3ea499157195660af0Jakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek# FIXME: Use a stamp file until po4a supports them internally.
3aadf096716d0610d97e90c57017283f1c13c805Stephen Gallagherman.stamp: $(XML_DOC) $(POTFILE) $(PO4A_CONFIG)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cd $(srcdir) && \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(PO4A) $(PO4A_BUILD_OPTS) $(PO4A_CONFIG)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek touch $@
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekupdate-po:
1c1b73f82d98d3289b924f3ea499157195660af0Jakub Hrozek @if test x"$(NONTRANSLATED_PAGES)" != "x"; then \
1c1b73f82d98d3289b924f3ea499157195660af0Jakub Hrozek echo "The following pages are not translated" $(NONTRANSLATED_PAGES); \
1c1b73f82d98d3289b924f3ea499157195660af0Jakub Hrozek exit 1; \
1c1b73f82d98d3289b924f3ea499157195660af0Jakub Hrozek fi
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cd $(srcdir) && \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(PO4A) $(PO4A_BUILD_OPTS) --force $(PO4A_CONFIG)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekdist-hook: man.stamp
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek if [ -f man.stamp ]; then \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cp man.stamp $(distdir); \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek for lang in $(LINGUAS_DIST); do \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cp $(srcdir)/po/$$lang.po $(distdir)/po; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(mkdir_p) $(distdir)/$$lang; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cp -r $(builddir)/$$lang $(distdir)/; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek done; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek else \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cp $(srcdir)/man.stamp $(distdir); \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek for lang in $(LINGUAS_DIST); do \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cp $(srcdir)/po/$$lang.po $(distdir)/po; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(mkdir_p) $(distdir)/$$lang; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek cp -r $(srcdir)/$$lang $(distdir)/; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek done; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek fi
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
72a63702851a26becd24e71dd4d4477435bdbc53Lukas Slebodnikclean-local:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek for lang in $(LINGUAS); do \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek if [ -d $$lang ]; then \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek rm -rf $$lang; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek fi \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek done
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek rm -f $(man_MANS)
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek rm -f man.stamp
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Boseelse
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Boseman.stamp: $(XML_DOC)
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose touch $@
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose
72a63702851a26becd24e71dd4d4477435bdbc53Lukas Slebodnikclean-local:
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose rm -f $(man_MANS)
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose rm -f man.stamp
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Boseendif
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose# Generate translated manual pages
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Boseall-local: all-local-@USE_NLS@
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Boseall-local-no:
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Boseall-local-yes: man.stamp
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose if [ -z $$recursion ]; then \
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose for lang in $(LINGUAS); do \
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose if [ -d $$lang ]; then \
44ca4ec72b85c875b91842084834c25b144adf0cSumit Bose sources=$$(ls -1 $$lang/*.xml); \
44ca4ec72b85c875b91842084834c25b144adf0cSumit Bose manpages=$$(echo $$sources | $(SED) 's/\.xml//g'); \
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose $(MAKE) recursion=1 man_MANS="$$manpages"; \
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose fi \
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose done \
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose fi
948c021d50ce26e5935f4909ef7d4c61d28b02b5Sumit Bose
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekinstall-data-local: install-data-local-@USE_NLS@
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekinstall-data-local-no:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekinstall-data-local-yes:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek for lang in $(LINGUAS); do \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek if [ -d $$lang ]; then \
44ca4ec72b85c875b91842084834c25b144adf0cSumit Bose sources=$$(ls -1 $$lang/*.xml); \
44ca4ec72b85c875b91842084834c25b144adf0cSumit Bose manpages=$$(echo $$sources | $(SED) 's/\.xml//g'); \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(MAKE) install-man \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek mandir="$(mandir)/$$lang" \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek man_MANS="$$manpages"; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek fi \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek done
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekuninstall-local: uninstall-local-@USE_NLS@
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekuninstall-local-no:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozekuninstall-local-yes:
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek for lang in $(LINGUAS); do \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek if [ -d $$lang ]; then \
44ca4ec72b85c875b91842084834c25b144adf0cSumit Bose sources=$$(ls -1 $$lang/*.xml); \
44ca4ec72b85c875b91842084834c25b144adf0cSumit Bose manpages=$$(echo $$sources | $(SED) 's/\.xml//g'); \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek $(MAKE) uninstall-man \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek mandir="$(mandir)/$$lang" \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek man_MANS="$$manpages"; \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek fi \
6f51c802311fd81a409a26763ed45b28a3234d0dJakub Hrozek done