$(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_FILES) $(LY_FILES)
+source-links = $(outdir)/source $(outdir)/lilypond-snippets/source
+
+$(outdir)/source:
+ @rm -f $(@)
+ ln -sf $(depth) $(@)
+
+$(outdir)/%/source:
+ @rm -f $(@)
+ mkdir -p $(dir $@)
+ ln -sf $(depth)/.. $(@)
+
info: $(INFO_FILES)
ifneq ($(out),www)
local-WWW: info $(outdir)/lilypond-snippets.pdf \
$(outdir)/lilypond-snippets/index.html \
- $(outdir)/lilypond-snippets-big-page.html
+ $(outdir)/lilypond-snippets-big-page.html \
+ $(source-links)