]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/GNUmakefile
Merge branch 'master' of ssh://kainhofer@git.sv.gnu.org/srv/git/lilypond into dev...
[lilypond.git] / input / lsr / GNUmakefile
index f79adc52914c73282b477dcb18129f6640fab7ab..6103529167235c044e940caf8f4824977fad3826 100644 (file)
@@ -26,6 +26,17 @@ $(outdir)/%.itely: %-intro.itely %.snippet-list
 
 $(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)
@@ -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)