> I've attached three compressed log files.  [...]

Thanks a lot, very helpful.  Please apply the attached patch to the
top-level `GNUmakefile.in` file, then retry from scratch (including
the `configure` step); it should catch all of the three problems
you've encountered.

The `-maxdepth` and `-mindepth` options of `find` are not completely
portable according to the 'autoconf' info pages; however, we are using
them in `aclocal.m4` since ages and nobody complained, so...


    Werner
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 6c0e1f287d..b28130e779 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -153,7 +153,7 @@ $(outdir)/%-root/index.html: doc-build
 	mkdir -p $(dir $@)/Documentation/
 	for d in . musicxml abc2ly lilypond-book ; do \
 		mkdir -p $(dir $@)/input/regression/$${d}; \
-		cp --link -a input/regression/$${d}/out-www/*  $(dir $@)/input/regression/$${d}/ ; \
+		cp -l -a input/regression/$${d}/out-www/*  $(dir $@)/input/regression/$${d}/ ; \
 	done
 	find $(dir $@)/input/regression/ \
 		-type f \
@@ -164,18 +164,23 @@ $(outdir)/%-root/index.html: doc-build
 		-not -name '*.mxl' \
 		-not -name 'collated-files.pdf' \
 		-delete
-	cp --link -a Documentation/out-www/webdoc/* $(dir $@)/Documentation/
-	cp --link $(TOPDOC_TXT_FILES) $(dir $@)
+	cp -l -a Documentation/out-www/webdoc/* $(dir $@)/Documentation/
+	cp -l $(TOPDOC_TXT_FILES) $(dir $@)
 	# No link because the files come from the source directory.
 	cp $(addprefix $(src-dir)/,$(README_FILES)) $(dir $@)
 	$(PYTHON) $(buildscript-dir)/www_post.py $(PACKAGE_NAME) $(TOPLEVEL_VERSION) $(dir $@) "$*"
 	find $(outdir)/$*-root -type l | xargs rm -f
-	cd $(outdir)/$*-root && find -name \*.html -execdir $(buildscript-dir)/fix-docsize.sh {} +
-	$(PERL) -i -pe 's#(href)="\.\./Documentation/#\1="#g' $(dir $@)/Documentation/*html
-	$(PERL) -i -pe 's#(href)="\.\./\.\./Documentation/#\1="../#g' $(dir $@)/Documentation/*/*html
-	# Fixup links to CSS files.
-	$(PERL) -i -pe 's#(href)="css/#\1="../../Documentation/css/#g' $(dir $@)/input/regression/*html
-	$(PERL) -i -pe 's#(href)="css/#\1="../../../Documentation/css/#g' $(dir $@)/input/regression/*/*html
+	cd $(outdir)/$*-root \
+	  && find . -name "*.html" -execdir $(buildscript-dir)/fix-docsize.sh {} +
+	find $(dir $@)/Documentation -maxdepth 1 -name "*html" \
+	  | xargs $(PERL) -i -pe 's#(href)="\.\./Documentation/#\1="#g'
+	find $(dir $@)/Documentation -mindepth 2 -maxdepth 2 -name "*html" \
+	  | xargs $(PERL) -i -pe 's#(href)="\.\./\.\./Documentation/#\1="../#g'
+	# Fix up links to CSS files.
+	find $(dir $@)/input/regression -maxdepth 1 -name "*html" \
+	  | xargs $(PERL) -i -pe 's#(href)="css/#\1="../../Documentation/css/#g'
+	find $(dir $@)/input/regression -mindepth 2 -maxdepth 2 -name "*html" \
+	  | xargs $(PERL) -i -pe 's#(href)="css/#\1="../../../Documentation/css/#g'
 
 doc-build: top-doc
 	$(MAKE) out=www -C Documentation/ doc

Reply via email to