2005-12-01 16:16:36 -06:00
|
|
|
## Process this file with automake to produce Makefile.in
|
2011-07-28 13:56:24 -05:00
|
|
|
|
2016-01-10 14:14:33 -06:00
|
|
|
## Copyright (C) 2005-2016 Red Hat, Inc.
|
2013-05-14 18:42:12 -05:00
|
|
|
##
|
|
|
|
## 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.1 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, see
|
|
|
|
## <http://www.gnu.org/licenses/>.
|
2011-07-28 13:56:24 -05:00
|
|
|
|
2019-11-20 09:17:22 -06:00
|
|
|
all: vpathhack
|
|
|
|
|
|
|
|
# This hack enables us to view the web pages
|
|
|
|
# from within the uninstalled build tree
|
|
|
|
vpathhack:
|
2020-06-17 19:27:48 -05:00
|
|
|
@for dir in js logos; \
|
2019-11-20 09:17:22 -06:00
|
|
|
do \
|
|
|
|
test -e $$dir || ln -s $(srcdir)/$$dir $$dir ; \
|
|
|
|
done
|
|
|
|
|
2019-04-05 09:43:07 -05:00
|
|
|
javascript = \
|
2019-04-05 07:59:31 -05:00
|
|
|
js/main.js \
|
2019-06-19 09:49:15 -05:00
|
|
|
$(NULL)
|
2019-04-05 09:43:07 -05:00
|
|
|
|
2019-11-20 08:23:04 -06:00
|
|
|
javascriptdir = $(HTML_DIR)/js
|
|
|
|
javascript_DATA = $(javascript)
|
|
|
|
|
2016-10-31 07:20:53 -05:00
|
|
|
logofiles = \
|
|
|
|
logos/logo-base.svg \
|
|
|
|
logos/logo-square.svg \
|
|
|
|
logos/logo-square-powered.svg \
|
|
|
|
logos/logo-banner-dark.svg \
|
|
|
|
logos/logo-banner-light.svg \
|
|
|
|
logos/logo-square-96.png \
|
|
|
|
logos/logo-square-128.png \
|
|
|
|
logos/logo-square-192.png \
|
|
|
|
logos/logo-square-256.png \
|
|
|
|
logos/logo-square-powered-96.png \
|
|
|
|
logos/logo-square-powered-128.png \
|
|
|
|
logos/logo-square-powered-192.png \
|
|
|
|
logos/logo-square-powered-256.png \
|
|
|
|
logos/logo-banner-dark-256.png \
|
|
|
|
logos/logo-banner-dark-800.png \
|
|
|
|
logos/logo-banner-light-256.png \
|
|
|
|
logos/logo-banner-light-800.png
|
|
|
|
|
2019-11-20 08:23:04 -06:00
|
|
|
logofilesdir = $(HTML_DIR)/logos
|
|
|
|
logofiles_DATA = $(logofiles)
|
|
|
|
|
2012-10-20 19:29:47 -05:00
|
|
|
internals_html_in = \
|
|
|
|
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/internals/*.html.in))
|
2019-12-06 11:26:18 -06:00
|
|
|
internals_rst = \
|
|
|
|
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/internals/*.rst))
|
|
|
|
internals_rst_html_in = \
|
|
|
|
$(internals_rst:%.rst=%.html.in)
|
2019-10-18 08:18:36 -05:00
|
|
|
internals_html = \
|
|
|
|
$(internals_html_in:%.html.in=%.html) \
|
|
|
|
$(internals_rst_html_in:%.html.in=%.html)
|
2012-10-20 19:29:47 -05:00
|
|
|
|
2019-11-20 08:23:04 -06:00
|
|
|
internalsdir = $(HTML_DIR)/internals
|
|
|
|
internals_DATA = $(internals_html)
|
|
|
|
|
2019-07-08 07:58:56 -05:00
|
|
|
kbase_html_in = \
|
|
|
|
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/kbase/*.html.in))
|
2019-10-18 08:18:36 -05:00
|
|
|
kbase_rst = \
|
|
|
|
$(patsubst $(srcdir)/%,%,$(wildcard $(srcdir)/kbase/*.rst))
|
|
|
|
kbase_rst_html_in = \
|
|
|
|
$(kbase_rst:%.rst=%.html.in)
|
|
|
|
kbase_html = \
|
|
|
|
$(kbase_html_in:%.html.in=%.html) \
|
|
|
|
$(kbase_rst_html_in:%.html.in=%.html)
|
2019-07-08 07:58:56 -05:00
|
|
|
|
2019-11-20 08:23:04 -06:00
|
|
|
kbasedir = $(HTML_DIR)/kbase
|
|
|
|
kbase_DATA = $(kbase_html)
|
|
|
|
|
2019-10-18 09:29:47 -05:00
|
|
|
# Sync with src/util/
|
|
|
|
KEYCODES = linux osx atset1 atset2 atset3 xtkbd usb win32 qnum
|
|
|
|
KEYNAMES = linux osx win32
|
|
|
|
|
2019-10-18 08:18:36 -05:00
|
|
|
manpages_rst = \
|
|
|
|
manpages/index.rst \
|
|
|
|
$(NULL)
|
|
|
|
manpages1_rst = \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virt-pki-validate.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virt-xml-validate.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virt-admin.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virsh.rst \
|
2019-10-18 08:18:36 -05:00
|
|
|
$(NULL)
|
|
|
|
manpages7_rst = \
|
2019-10-18 09:29:47 -05:00
|
|
|
$(KEYCODES:%=manpages/virkeycode-%.rst) \
|
|
|
|
$(KEYNAMES:%=manpages/virkeyname-%.rst) \
|
2019-10-18 08:18:36 -05:00
|
|
|
$(NULL)
|
2019-12-18 13:46:16 -06:00
|
|
|
manpages8_rst = $(NULL)
|
2019-10-18 08:18:36 -05:00
|
|
|
manpages_rst += \
|
|
|
|
$(manpages1_rst) \
|
|
|
|
$(manpages7_rst) \
|
|
|
|
$(manpages8_rst) \
|
|
|
|
$(NULL)
|
2019-10-18 09:29:47 -05:00
|
|
|
if WITH_LIBVIRTD
|
|
|
|
manpages8_rst += \
|
|
|
|
manpages/libvirtd.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virtlockd.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virtlogd.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
$(NULL)
|
|
|
|
else ! WITH_LIBVIRTD
|
|
|
|
manpages_rst += \
|
|
|
|
manpages/libvirtd.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virtlockd.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virtlogd.rst \
|
2019-10-18 09:29:47 -05:00
|
|
|
$(NULL)
|
|
|
|
endif ! WITH_LIBVIRTD
|
2019-10-18 09:29:47 -05:00
|
|
|
if WITH_HOST_VALIDATE
|
|
|
|
manpages1_rst += manpages/virt-host-validate.rst
|
|
|
|
else ! WITH_HOST_VALIDATE
|
|
|
|
manpages_rst += manpages/virt-host-validate.rst
|
|
|
|
endif ! WITH_HOST_VALIDATE
|
2019-10-18 09:29:47 -05:00
|
|
|
if WITH_LOGIN_SHELL
|
|
|
|
manpages1_rst += manpages/virt-login-shell.rst
|
|
|
|
else ! WITH_LOGIN_SHELL
|
|
|
|
manpages_rst += manpages/virt-login-shell.rst
|
|
|
|
endif ! WITH_LOGIN_SHELL
|
2019-12-18 13:46:16 -06:00
|
|
|
if WITH_SANLOCK
|
|
|
|
manpages8_rst += manpages/virt-sanlock-cleanup.rst
|
|
|
|
else ! WITH_SANLOCK
|
|
|
|
manpages_rst += manpages/virt-sanlock-cleanup.rst
|
|
|
|
endif ! WITH_SANLOCK
|
2019-05-17 07:01:59 -05:00
|
|
|
if WITH_QEMU
|
|
|
|
manpages1_rst += manpages/virt-qemu-run.rst
|
|
|
|
else ! WITH_QEMU
|
|
|
|
manpages_rst += manpages/virt-qemu-run.rst
|
|
|
|
endif ! WITH_QEMU
|
2019-10-18 08:18:36 -05:00
|
|
|
manpages_rst_html_in = \
|
|
|
|
$(manpages_rst:%.rst=%.html.in)
|
|
|
|
manpages_html = \
|
|
|
|
$(manpages_rst_html_in:%.html.in=%.html)
|
|
|
|
|
|
|
|
man1_MANS = $(manpages1_rst:%.rst=%.1)
|
|
|
|
man7_MANS = $(manpages7_rst:%.rst=%.7)
|
|
|
|
man8_MANS = $(manpages8_rst:%.rst=%.8)
|
|
|
|
|
|
|
|
%.1: %.rst
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
|
|
|
grep -v '^\.\. contents::' < $< | \
|
|
|
|
sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
|
|
|
|
-e 's|RUNSTATEDIR|$(runstatedir)|g' | \
|
2020-01-29 04:17:45 -06:00
|
|
|
$(RST2MAN) --strict > $@ || { rm $@ && exit 1; }
|
2019-10-18 08:18:36 -05:00
|
|
|
|
|
|
|
%.7: %.rst
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
|
|
|
grep -v '^\.\. contents::' < $< | \
|
|
|
|
sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
|
|
|
|
-e 's|RUNSTATEDIR|$(runstatedir)|g' | \
|
2020-01-29 04:17:45 -06:00
|
|
|
$(RST2MAN) --strict > $@ || { rm $@ && exit 1; }
|
2019-10-18 08:18:36 -05:00
|
|
|
|
|
|
|
%.8: %.rst
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
|
|
|
grep -v '^\.\. contents::' < $< | \
|
|
|
|
sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
|
|
|
|
-e 's|RUNSTATEDIR|$(runstatedir)|g' | \
|
2020-01-29 04:17:45 -06:00
|
|
|
$(RST2MAN) --strict > $@ || { rm $@ && exit 1; }
|
2019-10-18 08:18:36 -05:00
|
|
|
|
2019-10-18 09:29:47 -05:00
|
|
|
manpages/virkeycode-%.rst: $(top_srcdir)/src/keycodemapdb/data/keymaps.csv \
|
|
|
|
$(top_srcdir)/src/keycodemapdb/tools/keymap-gen Makefile.am
|
|
|
|
$(AM_V_GEN)export NAME=`echo $@ | \
|
|
|
|
sed -e 's,manpages/virkeycode-,,' -e 's,\.rst,,'` && \
|
|
|
|
$(MKDIR_P) manpages/ && \
|
|
|
|
$(RUNUTF8) $(PYTHON) $(top_srcdir)/src/keycodemapdb/tools/keymap-gen \
|
|
|
|
code-docs \
|
|
|
|
--lang rst \
|
|
|
|
--title "virkeycode-$$NAME" \
|
|
|
|
--subtitle "Key code values for $$NAME" \
|
|
|
|
$(top_srcdir)/src/keycodemapdb/data/keymaps.csv $$NAME > $@
|
|
|
|
|
|
|
|
manpages/virkeyname-%.rst: $(top_srcdir)/src/keycodemapdb/data/keymaps.csv \
|
|
|
|
$(top_srcdir)/src/keycodemapdb/tools/keymap-gen Makefile.am
|
|
|
|
$(AM_V_GEN)export NAME=`echo $@ | \
|
|
|
|
sed -e 's,manpages/virkeyname-,,' -e 's,\.rst,,'` && \
|
|
|
|
$(MKDIR_P) manpages/ && \
|
|
|
|
$(RUNUTF8) $(PYTHON) $(top_srcdir)/src/keycodemapdb/tools/keymap-gen \
|
|
|
|
name-docs \
|
|
|
|
--lang rst \
|
|
|
|
--title "virkeyname-$$NAME" \
|
|
|
|
--subtitle "Key name values for $$NAME" \
|
|
|
|
$(top_srcdir)/src/keycodemapdb/data/keymaps.csv $$NAME > $@
|
2019-10-18 08:18:36 -05:00
|
|
|
|
|
|
|
manpagesdir = $(HTML_DIR)/manpages
|
|
|
|
manpages_DATA = $(manpages_html)
|
|
|
|
|
2016-01-10 14:14:33 -06:00
|
|
|
schemadir = $(pkgdatadir)/schemas
|
2016-01-12 09:22:24 -06:00
|
|
|
schema_DATA = $(wildcard $(srcdir)/schemas/*.rng)
|
2016-01-10 14:14:33 -06:00
|
|
|
|
2019-10-18 08:18:36 -05:00
|
|
|
manpages/%.html.in: manpages/%.rst
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) `dirname $@` && \
|
|
|
|
grep -v '^:Manual ' < $< | \
|
|
|
|
sed -e 's|SYSCONFDIR|$(sysconfdir)|g' \
|
|
|
|
-e 's|RUNSTATEDIR|$(runstatedir)|g' | \
|
2020-01-29 04:17:45 -06:00
|
|
|
$(RST2HTML) --strict > $@ || { rm $@ && exit 1; }
|
2019-10-18 08:18:36 -05:00
|
|
|
|
2019-11-27 08:03:45 -06:00
|
|
|
check-html:
|
|
|
|
$(XMLLINT) --nonet --noout html/*.html
|
|
|
|
|
|
|
|
check-local: check-html
|