Blame Makefile-man.am

rpm-build 0fba15
# Makefile for man/
rpm-build 0fba15
#
rpm-build 0fba15
# Copyright (C) 2016 Colin Walters <walters@verbum.org>
rpm-build 0fba15
#
rpm-build 0fba15
# SPDX-License-Identifier: LGPL-2.0+
rpm-build 0fba15
#
rpm-build 0fba15
# This library is free software; you can redistribute it and/or
rpm-build 0fba15
# modify it under the terms of the GNU Lesser General Public
rpm-build 0fba15
# License as published by the Free Software Foundation; either
rpm-build 0fba15
# version 2 of the License, or (at your option) any later version.
rpm-build 0fba15
#
rpm-build 0fba15
# This library is distributed in the hope that it will be useful,
rpm-build 0fba15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 0fba15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build 0fba15
# Lesser General Public License for more details.
rpm-build 0fba15
#
rpm-build 0fba15
# You should have received a copy of the GNU Lesser General Public
rpm-build 0fba15
# License along with this library; if not, write to the
rpm-build 0fba15
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
rpm-build 0fba15
# Boston, MA 02111-1307, USA.
rpm-build 0fba15
rpm-build 0fba15
if ENABLE_MAN
rpm-build 0fba15
rpm-build 0fba15
man1_files = ostree.1 ostree-admin-cleanup.1				\
rpm-build 0fba15
ostree-admin-config-diff.1 ostree-admin-deploy.1			\
rpm-build 0fba15
ostree-admin-init-fs.1 ostree-admin-instutil.1 ostree-admin-os-init.1	\
rpm-build 0fba15
ostree-admin-status.1 ostree-admin-set-origin.1 ostree-admin-switch.1	\
rpm-build 0fba15
ostree-admin-undeploy.1 ostree-admin-upgrade.1 ostree-admin-unlock.1	\
rpm-build 0fba15
ostree-admin-pin.1 \
rpm-build 0fba15
ostree-admin.1 ostree-cat.1 ostree-checkout.1 ostree-checksum.1		\
rpm-build 0fba15
ostree-commit.1 ostree-create-usb.1 ostree-export.1 \
rpm-build 0fba15
ostree-config.1 ostree-diff.1 ostree-find-remotes.1 ostree-fsck.1 \
rpm-build 0fba15
ostree-init.1 ostree-log.1 ostree-ls.1 ostree-prune.1 ostree-pull-local.1 \
rpm-build 0fba15
ostree-pull.1 ostree-refs.1 ostree-remote.1 ostree-reset.1 \
rpm-build 0fba15
ostree-rev-parse.1 ostree-show.1 ostree-sign.1 ostree-summary.1 \
rpm-build 0fba15
ostree-static-delta.1
rpm-build 0fba15
if USE_LIBSOUP
rpm-build 0fba15
man1_files += ostree-trivial-httpd.1
rpm-build 0fba15
else
rpm-build 0fba15
# We still want to distribute the source, even if we are not building it
rpm-build 0fba15
EXTRA_DIST += man/ostree-trivial-httpd.xml
rpm-build 0fba15
endif
rpm-build 0fba15
rpm-build 0fba15
if BUILDOPT_FUSE
rpm-build 0fba15
man1_files += rofiles-fuse.1
rpm-build 0fba15
endif
rpm-build 0fba15
rpm-build 0fba15
if USE_GPGME
rpm-build 0fba15
man1_files += ostree-gpg-sign.1
rpm-build 0fba15
endif
rpm-build 0fba15
rpm-build 0fba15
man5_files = ostree.repo.5 ostree.repo-config.5
rpm-build 0fba15
rpm-build 0fba15
man1_MANS = $(addprefix man/,$(man1_files))
rpm-build 0fba15
man5_MANS = $(addprefix man/,$(man5_files))
rpm-build 0fba15
rpm-build 0fba15
EXTRA_DIST += $(man1_MANS:.1=.xml) $(man5_MANS:.5=.xml)
rpm-build 0fba15
rpm-build 0fba15
XSLT_STYLESHEET = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
rpm-build 0fba15
rpm-build 0fba15
XSLTPROC_FLAGS = \
rpm-build 0fba15
        --nonet \
rpm-build 0fba15
        --stringparam man.output.quietly 1 \
rpm-build 0fba15
        --stringparam funcsynopsis.style ansi \
rpm-build 0fba15
        --stringparam man.th.extra1.suppress 1 \
rpm-build 0fba15
        --stringparam man.authors.section.enabled 0 \
rpm-build 0fba15
        --stringparam man.copyright.section.enabled 0
rpm-build 0fba15
rpm-build 0fba15
XSLTPROC_MAN = $(XSLTPROC) $(XSLTPROC_FLAGS)
rpm-build 0fba15
rpm-build 0fba15
%.1: %.xml
rpm-build 0fba15
	$(AM_V_GEN) $(XSLTPROC_MAN) --output $@ $(XSLT_STYLESHEET) $<
rpm-build 0fba15
rpm-build 0fba15
%.5: %.xml
rpm-build 0fba15
	$(AM_V_GEN) $(XSLTPROC_MAN) --output $@ $(XSLT_STYLESHEET) $<
rpm-build 0fba15
rpm-build 0fba15
CLEANFILES += \
rpm-build 0fba15
	$(man1_MANS) \
rpm-build 0fba15
	$(man5_MANS) \
rpm-build 0fba15
	$(NULL)
rpm-build 0fba15
rpm-build 0fba15
endif