]> git.donarmstrong.com Git - lilypond.git/blob - make/Makefile.am.wild
release: 0.1.49
[lilypond.git] / make / Makefile.am.wild
1 # project  LilyPond -- the musical typesetter
2 # title    zucht
3 # file     make/Makefile.am.dist
4 #
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
9
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
13
14 spec: $(outdir)/lilypond.spec
15
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})))
21
22 date = $(shell date '+%d%b%y'|tr a-z A-Z)
23
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'
28
29 lilypond.spec: lilypond.spec.in ../VERSION
30         cat $< | $(SED_VERSION) | $(SED_DOCS) | $(SED_EXAMPLES) > $@
31
32 %.lsm: %.lsm.in ../VERSION
33         cat $< | $(SED_VERSION) | $(SED_DATE) > $@
34