diff --git a/gtk-doc.make b/gtk-doc.make
index 63adaed..68cae60 100644
--- a/gtk-doc.make
+++ b/gtk-doc.make
@@ -85,6 +85,7 @@ scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
                test -f $$i || touch $$i ; \
 	    done \
 	fi
+	$(GTKDOC_SYNTAX) $(SYNTAX_CONFIG) $(DOC_MODULE)-decl.txt >$(DOC_MODULE).syn
 	@touch scan-build.stamp
 
 $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
@@ -161,7 +162,7 @@ clean-local:
 
 distclean-local:
 	cd $(srcdir) && \
-	  rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \
+	  rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf $(DOC_MODULE).syn \
 	         $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
 
 maintainer-clean-local: clean
@@ -182,6 +183,9 @@ install-data-local:
 	    echo '-- Installing '$$i ; \
 	    $(INSTALL_DATA) $$i $${installdir}; \
 	  done; \
+	  if test -f "$(DOC_MODULE).syn"; then \
+	    $(INSTALL_DATA) $(DOC_MODULE).syn $${installdir}; \
+	  fi; \
 	  if test -n "$(DOC_MODULE_VERSION)"; then \
 	    mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
 	      $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
