]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/GNUmakefile
Fix a bunch of HTML links
[lilypond.git] / input / lsr / GNUmakefile
index 16946ea380e995a088f23360793a473d12894e03..57303b049965eb98888843216378801a85ab256b 100644 (file)
@@ -26,6 +26,17 @@ $(outdir)/%.itely: %-intro.itely %.snippet-list
 
 $(outdir)/lilypond-snippets.texi: $(GENERATED_ITELY_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)
@@ -47,4 +58,5 @@ local-clean:
 
 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