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