build: Move man pages into man/
This is preparation for having 3 separate doc build systems (whee): - xsltproc for the man pages - gtk-doc for the API docs - mkdocs for a real manual
This commit is contained in:
parent
5ebe43859d
commit
313b4720e8
|
|
@ -0,0 +1,54 @@
|
||||||
|
# Makefile for man/
|
||||||
|
#
|
||||||
|
# Copyright (C) 2016 Colin Walters <walters@verbum.org>
|
||||||
|
#
|
||||||
|
# This library is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Lesser General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This library is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this library; if not, write to the
|
||||||
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
# Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
man1_files = ostree.1 ostree-admin-cleanup.1 ostree-admin-config-diff.1 ostree-admin-deploy.1 ostree-admin-init-fs.1 ostree-admin-instutil.1 ostree-admin-os-init.1 ostree-admin-status.1 ostree-admin-set-origin.1 ostree-admin-switch.1 ostree-admin-undeploy.1 ostree-admin-upgrade.1 ostree-admin.1 ostree-cat.1 ostree-checkout.1 ostree-checksum.1 ostree-commit.1 ostree-gpg-sign.1 ostree-config.1 ostree-diff.1 ostree-fsck.1 ostree-init.1 ostree-log.1 ostree-ls.1 ostree-prune.1 ostree-pull-local.1 ostree-pull.1 ostree-refs.1 ostree-remote.1 ostree-reset.1 ostree-rev-parse.1 ostree-show.1 ostree-summary.1 ostree-static-delta.1 ostree-trivial-httpd.1
|
||||||
|
|
||||||
|
man5_files = ostree.repo.5 ostree.repo-config.5
|
||||||
|
|
||||||
|
man1_MANS = $(addprefix man/,$(man1_files))
|
||||||
|
man5_MANS = $(addprefix man/,$(man5_files))
|
||||||
|
|
||||||
|
EXTRA_DIST += $(man1_MANS) $(man5_MANS)
|
||||||
|
|
||||||
|
if ENABLE_XSLTPROC
|
||||||
|
|
||||||
|
XSLT_STYLESHEET = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
|
||||||
|
|
||||||
|
XSLTPROC_FLAGS = \
|
||||||
|
--nonet \
|
||||||
|
--stringparam man.output.quietly 1 \
|
||||||
|
--stringparam funcsynopsis.style ansi \
|
||||||
|
--stringparam man.th.extra1.suppress 1 \
|
||||||
|
--stringparam man.authors.section.enabled 0 \
|
||||||
|
--stringparam man.copyright.section.enabled 0
|
||||||
|
|
||||||
|
XSLTPROC_MAN = $(XSLTPROC) $(XSLTPROC_FLAGS)
|
||||||
|
|
||||||
|
%.1: %.xml
|
||||||
|
$(AM_V_GEN) $(XSLTPROC_MAN) --output $@ $(XSLT_STYLESHEET) $<
|
||||||
|
|
||||||
|
%.5: %.xml
|
||||||
|
$(AM_V_GEN) $(XSLTPROC_MAN) --output $@ $(XSLT_STYLESHEET) $<
|
||||||
|
|
||||||
|
CLEANFILES += \
|
||||||
|
$(man1_MANS) \
|
||||||
|
$(man5_MANS) \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
endif # ENABLE_GTK_DOC
|
||||||
|
|
@ -70,6 +70,7 @@ include Makefile-ostree.am
|
||||||
include Makefile-switchroot.am
|
include Makefile-switchroot.am
|
||||||
include Makefile-tests.am
|
include Makefile-tests.am
|
||||||
include Makefile-boot.am
|
include Makefile-boot.am
|
||||||
|
include Makefile-man.am
|
||||||
|
|
||||||
release-tag:
|
release-tag:
|
||||||
git tag -m "Release $(VERSION)" v$(VERSION)
|
git tag -m "Release $(VERSION)" v$(VERSION)
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ AM_CONDITIONAL([ENABLE_GTK_DOC], false)
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
||||||
|
AM_CONDITIONAL([ENABLE_XSLTPROC], test -n "${XSLTPROC}")
|
||||||
|
|
||||||
AC_ARG_WITH(libarchive,
|
AC_ARG_WITH(libarchive,
|
||||||
AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
|
AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
|
||||||
|
|
|
||||||
|
|
@ -126,43 +126,7 @@ version.xml:
|
||||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
||||||
include $(top_srcdir)/gtk-doc.make
|
include $(top_srcdir)/gtk-doc.make
|
||||||
|
|
||||||
man1_MANS = ostree.1 ostree-admin-cleanup.1 ostree-admin-config-diff.1 ostree-admin-deploy.1 ostree-admin-init-fs.1 ostree-admin-instutil.1 ostree-admin-os-init.1 ostree-admin-status.1 ostree-admin-set-origin.1 ostree-admin-switch.1 ostree-admin-undeploy.1 ostree-admin-upgrade.1 ostree-admin.1 ostree-cat.1 ostree-checkout.1 ostree-checksum.1 ostree-commit.1 ostree-gpg-sign.1 ostree-config.1 ostree-diff.1 ostree-fsck.1 ostree-init.1 ostree-log.1 ostree-ls.1 ostree-prune.1 ostree-pull-local.1 ostree-pull.1 ostree-refs.1 ostree-remote.1 ostree-reset.1 ostree-rev-parse.1 ostree-show.1 ostree-summary.1 ostree-static-delta.1 ostree-trivial-httpd.1
|
|
||||||
|
|
||||||
man5_MANS = ostree.repo.5 ostree.repo-config.5
|
|
||||||
|
|
||||||
if ENABLE_GTK_DOC
|
|
||||||
|
|
||||||
XSLTPROC_FLAGS = \
|
|
||||||
--nonet \
|
|
||||||
--stringparam man.output.quietly 1 \
|
|
||||||
--stringparam funcsynopsis.style ansi \
|
|
||||||
--stringparam man.th.extra1.suppress 1 \
|
|
||||||
--stringparam man.authors.section.enabled 0 \
|
|
||||||
--stringparam man.copyright.section.enabled 0
|
|
||||||
|
|
||||||
XSLTPROC_MAN = \
|
|
||||||
$(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
|
|
||||||
|
|
||||||
.xml.1:
|
|
||||||
$(AM_V_GEN) $(XSLTPROC_MAN) $<
|
|
||||||
.xml.5:
|
|
||||||
$(AM_V_GEN) $(XSLTPROC_MAN) $<
|
|
||||||
|
|
||||||
CLEANFILES += \
|
|
||||||
$(man1_MANS) \
|
|
||||||
$(man5_MANS) \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
endif # ENABLE_GTK_DOC
|
|
||||||
|
|
||||||
MAN_IN_FILES = \
|
|
||||||
$(man1_MANS:.1=.xml) \
|
|
||||||
$(man5_MANS:.5=.xml) \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
$(MAN_IN_FILES) \
|
|
||||||
version.xml \
|
version.xml \
|
||||||
ostree.xml \
|
|
||||||
ostree-sections.txt \
|
ostree-sections.txt \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue