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
20 # two outdir files are distributed, since they make sense to have without running
23 LSMENTRY=$(outdir)/lilypond.lsm
24 RPMSPEC=$(outdir)/lilypond.spec
26 IN_FILES = $(wildcard *.in)
27 EXTRA_DISTFILES = $(IN_FILES)
28 OUT_DISTFILES= $(outdir)/lelievijver.lsm $(LSMENTRY) $(RPMSPEC)
33 include ./$(depth)/make/Variables.make
34 include ./$(depth)/make/Files.make
35 include ./$(depth)/make/Targets.make
36 include ./$(depth)/make/Rules.make
38 default: $(RPMSPEC) $(LSMENTRY) $(RPMRC)
41 rpmdocs=BUGS TODO NEWS DEDICATION ANNOUNCE README
42 rpmdvis=$(rpmmudocs:.doc=.dvi)
43 rpmexamples= $(addprefix input/, $(notdir $(shell ls $(depth)/input/*.ly)))
46 date = $(shell date '+%d%b%y'|tr a-z A-Z)
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} ${rpmmudocs}!g'
50 sed-docs=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
51 sed-dottext=sed 's!@DOTTEXT@!${DOTTEXT}!g'
52 sed-rootdir=sed 's!@LILYPOND_ROOTDIR@!${LILYPOND_ROOTDIR}!g'
54 $(outdir)/%.spec: %.spec.in $(depth)/VERSION
55 cat $< | $(sed-version) | $(sed-docs) | $(sed-examples) \
58 $(outdir)/%.lsm: %.lsm.in $(depth)/VERSION
59 cat $< | $(sed-version) | $(sed-date) > $@
62 cat $< | $(sed-rootdir) > $@