+$(OUT)/weblinks.itexi: #FIXME: add dependencies
+ $(CREATE_WEBLINKS) $(top-src-dir) > $(OUT)/weblinks.itexi
+
+$(bib-files): $(OUT)/%.itexi: $(top-src-dir)/Documentation/web/%.bib
+ BSTINPUTS=$(top-src-dir)/Documentation/web \
+ $(WEB_BIBS) -s web \
+ -s $(top-src-dir)/Documentation/lily-bib \
+ -o $@ \
+ $(quiet-flag) \
+ $<
+
+# Get xrefs for English tely manuals
+$(MANUALS_TELY:%.tely=$(OUT)/%.xref-map): $(OUT)/%.xref-map: $(top-src-dir)/Documentation/%.tely
+ $(DO_TEXI_DEP) $(EXTRACT_TEXI_FILENAMES) $<
+
+# Get xrefs for English texi manuals
+$(MANUALS_TEXI:%.texi=$(OUT)/%.xref-map): $(OUT)/%.xref-map: $(top-src-dir)/Documentation/%.texi
+ $(DO_TEXI_DEP) $(EXTRACT_TEXI_FILENAMES) $<
+
+# Get xrefs for translated tely manuals
+$(eval $(foreach l,$(WEB_LANGS),\
+$(eval $(MANUALS_$(l):%.tely=$(OUT)/%.$(l).xref-map): $(OUT)/%.$(l).xref-map: $(top-src-dir)/Documentation/$(l)/%.tely; \
+ $$(DO_TEXI_DEP) $$(EXTRACT_TEXI_FILENAMES) $$< ) \
+))
+
+# Get xrefs for the English web.texi manual
+$(OUT)/web.xref-map: $(top-src-dir)/Documentation/web.texi
+ $(DO_TEXI_DEP) $(EXTRACT_TEXI_FILENAMES) --split=node $<
+
+# Get xrefs for translated web.texi manuals
+$(OUT)/web.%.xref-map: $(top-src-dir)/Documentation/%/web.texi
+ $(DO_TEXI_DEP) $(EXTRACT_TEXI_FILENAMES) --split=node $<
+
+# Build the English website
+$(OUT)/index.html: $(top-src-dir)/Documentation/web.texi
+ $(DO_TEXI_DEP) $(TEXI2HTML) $<
+
+# Build translated websites
+$(eval $(foreach l,$(WEB_LANGS),\
+$(eval $(OUT)/$(l)/index.html: $(top-src-dir)/Documentation/$(l)/web.texi; \
+ $$(DO_TEXI_DEP) $$(TEXI2HTML) --lang="$(l)" $$<; ) \
+))
+
+# Website post-processing
+$(OUT)/website/index.html: $(wildcard $(OUT)/*.html)
+ ls $(OUT)/*.html | sed 's!$(OUT)/!!g' | xargs $(MASS_LINK) --prepend-suffix="" hard $(OUT)/ $(OUT)/website/
+ $(foreach l,$(WEB_LANGS), \
+ ls $(OUT)/$(l)/*.html | xargs grep -L 'UNTRANSLATED NODE: IGNORE ME' | sed 's!$(OUT)/$(l)/!!g' | xargs $(MASS_LINK) --prepend-suffix=".$(l)" hard $(OUT)/$(l)/ $(OUT)/website/; )
+ $(WEB_POST) $(OUT)/website
+
+# Simple copy
+$(css-files): $(OUT)/website/%: $(top-src-dir)/Documentation/css/%
+ cp $< $@
+
+$(example-files): $(OUT)/website/ly-examples/%: $(EXAMPLES)/%
+ cp $< $@
+
+$(picture-files): $(OUT)/website/pictures/%: $(PICTURES)/%
+ cp $< $@
+
+$(OUT)/website/favicon.ico: $(SERVER_FILES)/favicon.ico
+ cp $< $@
+
+$(OUT)/website/robots.txt: $(SERVER_FILES)/robots.txt
+ cp $< $@
+
+$(OUT)/.htaccess: $(top-htaccess)
+ cp $< $@
+
+$(OUT)/website/.htaccess: $(dir-htaccess)
+ cp $< $@