Commit f29266b4 authored by Iustin Pop's avatar Iustin Pop

Also generate HTML format for the man pages

This would help in generating online-viewable docs, which could link to
the man pages.

Reviewed-by: imsnah
parent 74aa2478
...@@ -47,4 +47,5 @@ ...@@ -47,4 +47,5 @@
# man # man
/man/*.[0-9] /man/*.[0-9]
/man/*.html
/man/*.in /man/*.in
...@@ -53,6 +53,7 @@ CLEANFILES = \ ...@@ -53,6 +53,7 @@ CLEANFILES = \
lib/rapi/*.py[co] \ lib/rapi/*.py[co] \
man/*.[78] \ man/*.[78] \
man/*.in \ man/*.in \
man/*.html \
qa/*.py[co] \ qa/*.py[co] \
test/*.py[co] \ test/*.py[co] \
stamp-directories \ stamp-directories \
...@@ -125,6 +126,8 @@ doc_DATA = \ ...@@ -125,6 +126,8 @@ doc_DATA = \
$(patsubst %.sgml,%.html,$(docsgml)) \ $(patsubst %.sgml,%.html,$(docsgml)) \
$(patsubst %.sgml,%.pdf,$(docsgml)) $(patsubst %.sgml,%.pdf,$(docsgml))
noinst_DATA = $(manhtml)
dist_sbin_SCRIPTS = \ dist_sbin_SCRIPTS = \
daemons/ganeti-noded \ daemons/ganeti-noded \
daemons/ganeti-watcher \ daemons/ganeti-watcher \
...@@ -194,6 +197,7 @@ man_MANS = \ ...@@ -194,6 +197,7 @@ man_MANS = \
maninput = $(patsubst %.7,%.in,$(patsubst %.8,%.in,$(man_MANS))) maninput = $(patsubst %.7,%.in,$(patsubst %.8,%.in,$(man_MANS)))
mansgml = $(patsubst %.in,%.sgml,$(maninput)) mansgml = $(patsubst %.in,%.sgml,$(maninput))
manhtml = $(patsubst %.in,%.html,$(maninput))
TEST_FILES = \ TEST_FILES = \
test/data/bdev-both.txt \ test/data/bdev-both.txt \
...@@ -265,6 +269,9 @@ man/%.7: man/%.in man/footer.sgml $(DOCBOOK_WRAPPER) ...@@ -265,6 +269,9 @@ man/%.7: man/%.in man/footer.sgml $(DOCBOOK_WRAPPER)
man/%.8: man/%.in man/footer.sgml $(DOCBOOK_WRAPPER) man/%.8: man/%.in man/footer.sgml $(DOCBOOK_WRAPPER)
$(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $@ $(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $@
man/%.html: man/%.in $(DOCBOOK_WRAPPER)
$(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $@
man/footer.sgml $(TESTS): srclinks man/footer.sgml $(TESTS): srclinks
$(TESTS) $(BUILD_RAPI_RESOURCE_DOC): ganeti lib/_autoconf.py $(TESTS) $(BUILD_RAPI_RESOURCE_DOC): ganeti lib/_autoconf.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment