2 # project LilyPond -- the musical typesetter
6 # Copyright (c) 1997 by
7 # Jan Nieuwenhuizen <jan@digicash.com>
8 # Han-Wen Nienhuys <hanwen@stack.nl>
9 # ...your sort order here, or how to comment-out a comment
21 # list of distribution files:
23 # two outdir files are distributed, since they make sense to have without running
25 EXTRA_DISTFILES = Configure_variables.make.in lilypond.spec.in Toplevel.make.in \
26 lilypond.lsm.in $(outdir)/lilypond.spec $(outdir)/lilypond.lsm
31 include ./$(depth)/make/Variables.make
32 include ./$(depth)/make/Files.make
35 # generic targets and rules:
37 include ./$(depth)/make/Targets.make
38 include ./$(depth)/make/Rules.make
41 spec: $(outdir)/lilypond.spec
43 rpmdocs=$(addprefix Documentation/out/, $(notdir $(shell ls $(depth)/Documentation/$(outdir)/*.text)))
44 rpmexamples= $(addprefix input/, $(notdir $(shell ls $(depth)/input/*.{ly,tex})))
47 sed-version= sed 's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g'
48 sed-date=sed 's!@DATE@!${date}!g'
49 sed-examples = sed 's!@EXAMPLE_LYS@!${rpmexamples}!g'
50 sed-docs=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
52 $(outdir)/lilypond.spec: lilypond.spec.in $(depth)/.version
53 cat $< | $(sed-version) | $(sed-docs) | $(sed-examples) > $@
55 $(outdir)/lilypond.lsm: lilypond.lsm.in $(depth)/.version
56 cat $< | $(sed-version) | $(sed-date) > $@