]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/website.make
Silences "Not a dir" messages in make website
[lilypond.git] / make / website.make
index 55e2331633765bdbf3b2694eda40b069e7c469c6..62ca4b803d71f74d40d5a68c1db593c7428f1903 100644 (file)
@@ -84,6 +84,11 @@ website-version:
 
 website-xrefs: website-version
        for l in '' $(WEB_LANGS); do \
+               len="$${#l}" ; \
+               r="$$l"; \
+               if [ "$$len" -gt "0" ] ; then \
+                       r="$$r"/; \
+               fi ; \
                $(EXTRACT_TEXI_FILENAMES) \
                        -I $(top-src-dir)/Documentation \
                        -I $(top-src-dir)/Documentation/"$$l" \
@@ -99,7 +104,7 @@ website-xrefs: website-version
                                $(EXTRACT_TEXI_FILENAMES) \
                                -I $(top-src-dir)/Documentation \
                                -I $(top-src-dir)/Documentation/"$$l" \
-                               -I $(top-src-dir)/Documentation/"$$l"/"$$d" \
+                               -I $(top-src-dir)/Documentation/"$$r""$$d" \
                                --known-missing-files=$(top-src-dir)/scripts/build/website-known-missing-files.txt \
                          $(quiet-flag) \
                                -I $(OUT) -o $(OUT) "$$n" ; \