]> git.donarmstrong.com Git - lilypond.git/blob - make/Makefile
d02cd493bbd141d5e2eff686b2e00e3ada2457a6
[lilypond.git] / make / Makefile
1 #
2 # project  LilyPond -- the musical typesetter
3 # title    zucht
4 # file     make/Makefile 
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 # subdir level:
12 #
13 depth = ..
14 #
15
16 # identify module:
17 #
18 NAME = make
19
20
21 # list of distribution files:
22
23 # two outdir files are distributed, since they make sense to have without running 
24 # configure and make.
25 EXTRA_DISTFILES = Configure_variables.make.in lilypond.spec.in Toplevel.make.in \
26         lilypond.lsm.in $(outdir)/lilypond.spec $(outdir)/lilypond.lsm
27 #
28
29 # generic variables:
30 #
31 include ./$(depth)/make/Variables.make
32 include ./$(depth)/make/Files.make 
33 #
34
35 # generic targets and rules:
36 #
37 include ./$(depth)/make/Targets.make
38 include ./$(depth)/make/Rules.make
39 #
40
41 spec: $(outdir)/lilypond.spec
42
43 rpmdocs=$(addprefix Documentation/out/, $(notdir $(shell ls $(depth)/Documentation/$(outdir)/*.text)))
44 sed-version= sed 's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g'
45 sed-date=sed 's!@DATE@!${date}!g'
46 sed-docs=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
47
48 $(outdir)/lilypond.spec: lilypond.spec.in $(depth)/.version
49         cat $< | $(sed-version) | $(sed-docs) > $@
50
51 $(outdir)/lilypond.lsm: lilypond.lsm.in $(depth)/.version
52         cat $< | $(sed-version) | $(sed-date) > $@