diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-07-18 23:54:50 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-07-18 23:54:50 +0000 |
commit | 2b6b242e6e1886528e335a3935e7069a4da63809 (patch) | |
tree | a039a833e427e9c099227c97ffad286c72d2839a /Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am | |
parent | 207ee9314f0cb126393c67d4b5549087221da64d (diff) |
dvisvgm 2.4.2
git-svn-id: svn://tug.org/texlive/trunk@48223 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am index d88d776d1e4..f7c5162f658 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am +++ b/Build/source/texk/dvisvgm/dvisvgm-src/doc/Makefile.am @@ -3,7 +3,13 @@ ## ## Process this file with automake. +# Don't try to install the manpage file if it can't be built due to missing utilities. +# However, the distribution tarball should always contain a recent manpage. We ensure +# this by adding a dist-hook rule below. +if BUILD_MANPAGE man_MANS = dvisvgm.1 +endif + EXTRA_DIST = $(man_MANS) conf-dblatex-man.xsl conf-dblatex-pdf.xsl tweak-dblatex-pdf.xsl tweak-db-refentry.xsl CONF_DBLATEX_MAN = $(top_srcdir)/doc/conf-dblatex-man.xsl @@ -15,9 +21,7 @@ TWEAK_DB_REFENTRY = $(top_srcdir)/doc/tweak-db-refentry.xsl DB_VARS = man.endnotes.list.enabled=0 man.endnotes.are.numbered=0 man.authors.section.enabled=0 dvisvgm.1: dvisvgm-man.xml $(CONF_DBLATEX_MAN) - if [ `type -p xmlto` ]; then \ - xmlto -m $(CONF_DBLATEX_MAN) $(addprefix --stringparam , $(DB_VARS)) man $<; \ - fi + xmlto -m $(CONF_DBLATEX_MAN) $(addprefix --stringparam , $(DB_VARS)) man $< dvisvgm.pdf: dvisvgm-man.xml $(CONF_DBLATEX_PDF) $(TWEAK_DBLATEX_PDF) mv $< $<.tmp @@ -41,19 +45,15 @@ dvisvgm.epub: dvisvgm-article.xml mv $(basename $<).epub $@ dvisvgm-man.xml: dvisvgm.txt $(TWEAK_DB_REFENTRY) - if [ `type -p asciidoc` ]; then \ - asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -dmanpage -o $@.tmp $<; \ - xsltproc -o $@ $(TWEAK_DB_REFENTRY) $@.tmp; \ - rm $@.tmp; \ - fi + asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -dmanpage -o $@.tmp $< + xsltproc -o $@ $(TWEAK_DB_REFENTRY) $@.tmp + rm $@.tmp dvisvgm-article.xml: dvisvgm.txt - if [ `type -p asciidoc` ]; then \ - asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -darticle -o $@.tmp $<; \ - xsltproc -o $@ $(TWEAK_DB_ARTICLE) $@.tmp; \ - rm $@.tmp; \ - sed -i "s/{VERSION}/@VERSION@/" $@; \ - fi + asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -bdocbook -darticle -o $@.tmp $< + xsltproc -o $@ $(TWEAK_DB_ARTICLE) $@.tmp + rm $@.tmp + sed -i "s/{VERSION}/@VERSION@/" $@ epub: dvisvgm.epub html: dvisvgm.html @@ -65,3 +65,14 @@ clean: distclean-local: rm -f dvisvgm.pdf dvisvgm.html dvisvgm-man.xml dvisvgm-article.xml dvisvgm.txt dvisvgm.dvi dvisvgm.epub dvisvgm.1 + +# Ensure that distribution tarballs always contain a recent manpage, i.e. +# let "make dist" and "make distcheck" fail if dvisvgm.1 can't be built. +dist-hook: + @if test ! -f dvisvgm.1; then \ + echo "----------------------------------------------------------------"; \ + echo "manpage file dvisvgm.1 could not be built because one or more of"; \ + echo "the following utilities are missing: asciidoc, xmlto, xsltproc "; \ + echo "----------------------------------------------------------------"; \ + false; \ + fi |