gtk-doc-plugins.mak: Only check for the hierarchy file if gtk-doc is enabled
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 25 Mar 2011 21:03:28 +0000 (22:03 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 25 Mar 2011 21:04:15 +0000 (22:04 +0100)
gtk-doc-plugins.mak

index 0c0019c..c0ff7b3 100644 (file)
@@ -302,6 +302,7 @@ uninstall-local:
 #
 # Checks
 #
+if ENABLE_GTK_DOC
 check-hierarchy: $(DOC_MODULE).hierarchy
        @if grep '      ' $(DOC_MODULE).hierarchy; then \
            echo "$(DOC_MODULE).hierarchy contains tabs, please fix"; \
@@ -309,6 +310,7 @@ check-hierarchy: $(DOC_MODULE).hierarchy
        fi
 
 check: check-hierarchy
+endif
 
 # wildcard is apparently not portable to other makes, hence the use of find
 inspect_files = $(shell find $(srcdir)/$(INSPECT_DIR) -name '*.xml')