1 # project LilyPond -- the musical typesetter
3 # file make/Makefile.am.dist
5 # Copyright (c) 1997 by
6 # Jan Nieuwenhuizen <jan@digicash.com>
7 # Han-Wen Nienhuys <hanwen@stack.nl>
8 # ...your sort order here, or how to comment-out a comment
10 IN_FILES = $(wildcard *.in)
11 MAKE_FILES = $(wildcard *.make)
12 EXTRA_DIST = Makefile.am.wild $(IN_FILES) $(MAKE_FILES) lilypond.spec lilypond.lsm lelievijver.lsm
14 spec: $(outdir)/lilypond.spec
16 rpmdocs = $(addprefix Documentation/, $(notdir $(shell ls ../Documentation/$(outdir)/*.txt)))\
17 BUGS TODO NEWS DEDICATION ANNOUNCE README
18 rpmmudocs = $(addprefix Documentation/, $(notdir $(shell ls ../Documentation/*.doc)))
19 rpmdvis = $(rpmmudocs:.doc=.dvi)
20 rpmexamples = $(addprefix input/, $(notdir $(shell ls ../input/*.{ly,tex})))
22 date = $(shell date '+%d%b%y'|tr a-z A-Z)
24 SED_VERSION= sed 's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g'
25 SED_DATE=sed 's!@DATE@!${date}!g'
26 SED_EXAMPLES = sed 's!@EXAMPLE_LYS@!${rpmexamples} ${rpmmudocs}!g'
27 SED_DOCS=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
29 lilypond.spec: lilypond.spec.in ../VERSION
30 cat $< | $(SED_VERSION) | $(SED_DOCS) | $(SED_EXAMPLES) > $@
32 %.lsm: %.lsm.in ../VERSION
33 cat $< | $(SED_VERSION) | $(SED_DATE) > $@