]> git.donarmstrong.com Git - lilypond.git/blob - make/Makefile.am
release: 0.1.54
[lilypond.git] / make / Makefile.am
1 # Generated automatically by wild-perl 0.1
2 # project  LilyPond -- the musical typesetter
3 # title    zucht
4 # file     make/Makefile.am.dist
5 #
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
10
11 IN_FILES = Configure_variables.make.in Makefile.in Toplevel.make.in lelievijver.lsm.in lilypond.lsm.in lilypond.spec.in
12 MAKE_FILES = Files.make Include.make Initial.make Rules.make Targets.make Template.make User.make Variables.make Version.make
13 EXTRA_DIST = Makefile.am.wild $(IN_FILES) $(MAKE_FILES) lilypond.spec lilypond.lsm lelievijver.lsm
14
15 spec: $(outdir)/lilypond.spec
16
17 rpmdocs = $(addprefix Documentation/, $(notdir $(shell ls ../Documentation/$(outdir)/*.txt)))\
18         BUGS TODO NEWS DEDICATION ANNOUNCE README
19 rpmmudocs = $(addprefix Documentation/, $(notdir $(shell ls ../Documentation/*.doc)))
20 rpmdvis = $(rpmmudocs:.doc=.dvi)
21 rpmexamples = $(addprefix input/, $(notdir $(shell ls ../input/*.{ly,tex})))
22
23 date = $(shell date '+%d%b%y'|tr a-z A-Z)
24
25 SED_VERSION= sed 's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g'
26 SED_DATE=sed 's!@DATE@!${date}!g'
27 SED_EXAMPLES = sed 's!@EXAMPLE_LYS@!${rpmexamples} ${rpmmudocs}!g'
28 SED_DOCS=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
29
30 lilypond.spec: lilypond.spec.in ../VERSION
31         cat $< | $(SED_VERSION) | $(SED_DOCS) | $(SED_EXAMPLES) > $@
32
33 %.lsm: %.lsm.in ../VERSION
34         cat $< | $(SED_VERSION) | $(SED_DATE) > $@
35
36 $(srcdir)/Makefile.am: $(srcdir)/Makefile.am.wild
37         $(PERL) $(top_srcdir)/bin/wild-perl < $< > $@