]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
manpage-errors target works with linux man only
authorWillem Toorop <willem@nlnetlabs.nl>
Wed, 14 Jan 2015 10:44:58 +0000 (11:44 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Wed, 14 Jan 2015 10:44:58 +0000 (11:44 +0100)
Makefile.in

index be2827308814aa0082043e801d3f20a1ac2b1b5d..b35267e7c519003a6d7b0d890a2adf3ef2fdd732 100644 (file)
@@ -267,7 +267,8 @@ manpage-create-errors: $(srcdir)/doc/function_manpages
                -m $(srcdir)/doc/function_manpages >/dev/null
 
 manpage-errors:
-       @for m in `cat $(srcdir)/ldns/*.h | $(srcdir)/doc/doxyparse.pl -m $(srcdir)/doc/function_manpages 2>&1 | grep -v ^doxygen | grep -v ^cat` ; do\
+       @man --version >/dev/null 2>&1 && \
+       for m in `cat $(srcdir)/ldns/*.h | $(srcdir)/doc/doxyparse.pl -m $(srcdir)/doc/function_manpages 2>&1 | grep -v ^doxygen | grep -v ^cat` ; do\
                LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 \
                        man --warnings -E UTF-8 -l -Tutf8 -Z doc/man/man3/$${m}.3 2>&1 >/dev/null \
                        | awk "-vpage=$${m}.3" '{printf("%s: ", page);print}'; \
@@ -275,7 +276,7 @@ manpage-errors:
                then \
                        echo doc/man/man3/$${m}.3: manpage-has-bad-whatis-entry; \
                fi; \
-       done
+       done || echo "WARNING!: Cannot detect manpage errors on `uname`"
        
 pyldns: _ldns.la