]> git.donarmstrong.com Git - lilypond.git/blob - make/Makefile
release: 0.1.61
[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 SUBDIRS = 
19
20 # two outdir files are distributed, since they make sense to have without running 
21 # configure and make.
22
23 LSMENTRY=$(outdir)/lilypond.lsm
24 RPMSPEC=$(outdir)/lilypond.spec 
25 IN_FILES = $(wildcard *.in)
26 EXTRA_DISTFILES = $(IN_FILES)
27 OUT_DISTFILES= $(outdir)/lelievijver.lsm $(LSMENTRY) $(RPMSPEC)
28 #
29
30 # generic variables:
31 #
32 include ./$(depth)/make/Variables.make
33 include ./$(depth)/make/Files.make 
34 include ./$(depth)/make/Targets.make
35 include ./$(depth)/make/Rules.make
36
37 default: $(RPMSPEC) $(LSMENTRY)
38
39
40 rpmdocs=BUGS TODO NEWS DEDICATION ANNOUNCE README
41 rpmdvis=$(rpmmudocs:.doc=.dvi)
42 rpmexamples= $(addprefix input/, $(notdir $(shell ls $(depth)/input/*.ly)))
43
44
45 date = $(shell date '+%d%b%y'|tr a-z A-Z)
46 sed-version= sed 's!@TOPLEVEL_VERSION@!${TOPLEVEL_VERSION}!g'
47 sed-date=sed 's!@DATE@!${date}!g'
48 sed-examples = sed 's!@EXAMPLE_LYS@!${rpmexamples} ${rpmmudocs}!g'
49 sed-docs=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
50
51 $(outdir)/%.spec: %.spec.in $(depth)/VERSION
52         cat $< | $(sed-version) | $(sed-docs) | $(sed-examples) > $@
53
54 $(outdir)/%.lsm: %.lsm.in $(depth)/VERSION
55         cat $< | $(sed-version) | $(sed-date) > $@
56
57