Author: Andrew Shadura <andrewsh@debian.org>
Description: Don't run things twice.

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 8a9a498..95493d6 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -17,9 +17,6 @@ all: $(TARGETS)
 update:
 	$(MONODOCER) $(UPDATE_ASSEMBLIES) -path:en
 
-$(srcdir)/en/*/*.xml $(srcdir)/en/*.xml:
-	$(MONODOCER) $(UPDATE_ASSEMBLIES) -path:en
-
 $(ASSEMBLY_NAME)-docs.source:
 	@echo "Generating $@"
 	@echo "<?xml version=\"1.0\"?>" > $@
@@ -27,7 +24,9 @@ $(ASSEMBLY_NAME)-docs.source:
 	@echo "  <source provider=\"ecma\" basefile=\"$(ASSEMBLY_NAME)-docs\" path=\"classlib-$(ASSEMBLY_SHORTNAME)\"/>" >> $@
 	@echo "</monodoc>" >> $@
 
-$(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree: $(srcdir)/en/*/*.xml $(srcdir)/en/*.xml
+$(ASSEMBLY_NAME)-docs.zip $(ASSEMBLY_NAME)-docs.tree: assemble
+
+assemble: update
 	$(MDASSEMBLER) --ecma $(srcdir)/en -o $(ASSEMBLY_NAME)-docs
 
 CLEANFILES = $(TARGETS)
