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
32 include .
/$(depth
)/make
/Variables.make
33 include .
/$(depth
)/make
/Files.make
36 # generic targets and rules:
38 include .
/$(depth
)/make
/Targets.make
39 include .
/$(depth
)/make
/Rules.make
42 spec
: $(outdir
)/lilypond.spec
44 rpmdocs
=$(addprefix Documentation
/out
/, $(notdir $(shell ls
$(depth
)/Documentation
/$(outdir
)/*.text
)))\
45 BUGS TODO NEWS DEDICATION ANNOUNCE README
46 rpmmudocs
=$(addprefix Documentation
/, $(notdir $(shell ls
$(depth
)/Documentation
/*.doc
)))
47 rpmdvis
=$(rpmmudocs
:.doc
=.
dvi)
48 rpmexamples
= $(addprefix input
/, $(notdir $(shell ls
$(depth
)/input
/*.
{ly
,tex})))
51 date
= $(shell date
'+%d%b%y'|tr a-z A-Z
)
52 sed-version
= sed
's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g'
53 sed-date
=sed
's!@DATE@!${date}!g'
54 sed-examples
= sed
's!@EXAMPLE_LYS@!${rpmexamples} ${rpmmudocs}!g'
55 sed-docs
=sed
's!@TEXT_DOCS@!${rpmdocs}!g'
57 $(outdir
)/lilypond.spec
: lilypond.spec.in
$(depth
)/VERSION
58 cat
$< |
$(sed-version
) |
$(sed-docs
) |
$(sed-examples
) > $@
60 $(outdir
)/lilypond.lsm
: lilypond.lsm.in
$(depth
)/VERSION
61 cat
$< |
$(sed-version
) |
$(sed-date
) > $@