Revision 6be8e2bf Makefile.am
b/Makefile.am | ||
---|---|---|
365 | 365 |
test/mocks.py \ |
366 | 366 |
$(dist_TESTS) \ |
367 | 367 |
$(TEST_FILES) \ |
368 |
man/footer.sgml man/footer.rst \
|
|
369 |
$(mansgml) \
|
|
368 |
man/footer.rst \ |
|
369 |
$(manrst) \
|
|
370 | 370 |
$(maninput) \ |
371 | 371 |
qa/ganeti-qa.py \ |
372 | 372 |
qa/qa-sample.json \ |
... | ... | |
399 | 399 |
man/gnt-node.8 \ |
400 | 400 |
man/gnt-os.8 |
401 | 401 |
|
402 |
mansgml = $(patsubst %.7,%.sgml,$(patsubst %.8,%.sgml,$(man_MANS)))
|
|
403 |
manhtml = $(patsubst %.sgml,%.html,$(mansgml))
|
|
402 |
manrst = $(patsubst %.7,%.rst,$(patsubst %.8,%.rst,$(man_MANS)))
|
|
403 |
manhtml = $(patsubst %.rst,%.html,$(manrst))
|
|
404 | 404 |
maninput = \ |
405 | 405 |
$(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS))) \ |
406 | 406 |
$(patsubst %.html,%.html.in,$(manhtml)) \ |
407 |
man/footer.man |
|
407 |
man/footer.man man/footer.html
|
|
408 | 408 |
|
409 | 409 |
TEST_FILES = \ |
410 | 410 |
test/data/bdev-drbd-8.0.txt \ |
... | ... | |
495 | 495 |
$(noinst_PYTHON) |
496 | 496 |
|
497 | 497 |
srclink_files = \ |
498 |
man/footer.sgml man/footer.rst \
|
|
498 |
man/footer.rst \ |
|
499 | 499 |
test/check-cert-expired_unittest.bash \ |
500 | 500 |
test/daemon-util_unittest.bash \ |
501 | 501 |
test/ganeti-cleaner_unittest.bash \ |
... | ... | |
546 | 546 |
{ echo 'pandoc' not found during configure; exit 1; } |
547 | 547 |
$(PANDOC) -f rst -t man -o $@ $< |
548 | 548 |
|
549 |
man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
|
550 |
@test -n "$(DOCBOOK2MAN)" || \ |
|
551 |
{ echo 'docbook2man' not found during configure; exit 1; } |
|
552 |
$(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $(notdir $(@:.in=)) $@ |
|
549 |
man/footer.html: man/footer.rst |
|
550 |
@test -n "$(PANDOC)" || \ |
|
551 |
{ echo 'pandoc' not found during configure; exit 1; } |
|
552 |
$(PANDOC) -f rst -t html -o $@ $< |
|
553 |
|
|
554 |
man/%.7.in man/%.8.in: man/%.rst man/footer.man |
|
555 |
@test -n "$(PANDOC)" || \ |
|
556 |
{ echo 'pandoc' not found during configure; exit 1; } |
|
557 |
$(PANDOC) -s -f rst -t man -A man/footer.man $< | \ |
|
558 |
sed -e 's/\\@/@/g' > $@ |
|
553 | 559 |
if test -n "$(MAN_HAS_WARNINGS)"; then $(CHECK_MAN) $@; fi |
554 | 560 |
|
555 |
man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
|
556 |
@test -n "$(DOCBOOK2HTML)" || \ |
|
557 |
{ echo 'docbook2html' not found during configure; exit 1; } |
|
558 |
$(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $(notdir $(@:.in=)) $@ |
|
561 |
man/%.html.in: man/%.rst man/footer.html |
|
562 |
@test -n "$(PANDOC)" || \ |
|
563 |
{ echo 'pandoc' not found during configure; exit 1; } |
|
564 |
$(PANDOC) -s -f rst -t html -A man/footer.html $< | \ |
|
565 |
sed -e 's/\\@/@/g' > $@ |
|
566 |
|
|
559 | 567 |
|
560 | 568 |
man/%.7: man/%.7.in $(REPLACE_VARS_SED) |
561 | 569 |
sed -f $(REPLACE_VARS_SED) < $< > $@ |
Also available in: Unified diff