]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/Makefile
release: 0.0.46.jcn1
[lilypond.git] / make / Makefile
index 0928f016e26c02b3bc6b55e57f9ffd44371bc283..0d51e646b0ab78d1792aa5f49afe3204bed4f2d3 100644 (file)
@@ -35,5 +35,8 @@ include ./$(depth)/make/Targets.make
 include ./$(depth)/make/Rules.make
 #
 
-lilypond.spec: lilypond.spec.in $(depth)/.version
-       sed 's/@TOPLEVEL_VERSION@/${TOPLEVEL_VERSION}/g'< $< > $@
+spec: $(outdir)/lilypond.spec
+
+rpm-docs=$(addprefix Documentation/out/, $(notdir $(shell ls $(depth)/Documentation/$(outdir)/*.text)))
+$(outdir)/lilypond.spec: lilypond.spec.in $(depth)/.version
+       cat $< | sed 's/@TOPLEVEL_VERSION@/${TOPLEVEL_VERSION}/g'|sed 's#@TEXT_DOCS@#$(rpm-docs)#g' > $@