Adjust configure.ac to detect if xmltoman is available; use that in man/Makefile.am to rebuild the manpage and HTML file (generated from the same source) if necessary.
12 lines
206 B
Makefile
12 lines
206 B
Makefile
man_MANS = shairport-sync.7
|
|
|
|
if HAVE_XMLTOMAN
|
|
all-local: shairport-sync.html
|
|
|
|
shairport-sync.7: shairport-sync.7.xml
|
|
xmltoman $< > $@
|
|
|
|
shairport-sync.html: shairport-sync.7.xml
|
|
xmlmantohtml $< > $@
|
|
endif
|