]> git.donarmstrong.com Git - lilypond.git/blob - make/Makefile
release: 0.1.65
[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 RPMRC=$(outdir)/rpmrc
26 IN_FILES = $(wildcard *.in)
27 EXTRA_DISTFILES = $(IN_FILES)
28 OUT_DISTFILES= $(outdir)/lelievijver.lsm $(LSMENTRY) $(RPMSPEC)
29 #
30
31 # generic variables:
32 #
33 include ./$(depth)/make/Variables.make
34 include ./$(depth)/make/Files.make 
35 include ./$(depth)/make/Targets.make
36 include ./$(depth)/make/Rules.make
37
38 default: $(RPMSPEC) $(LSMENTRY) $(RPMRC)
39
40
41 rpmdocs=BUGS TODO NEWS DEDICATION ANNOUNCE README
42 rpmdvis=$(rpmmudocs:.doc=.dvi)
43 rpmexamples= $(addprefix input/, $(notdir $(shell ls $(depth)/input/*.ly)))
44
45
46 date = $(shell date '+%d%b%y'|tr a-z A-Z)
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 sed-dottext=sed 's!@DOTTEXT@!${DOTTEXT}!g'
51 sed-rootdir=sed 's!@LILYPOND_ROOTDIR@!${LILYPOND_ROOTDIR}!g'
52
53 $(outdir)/%.spec: %.spec.in $(depth)/VERSION
54         cat $< | $(sed-version) | $(sed-docs) | $(sed-examples) \
55         | $(sed-dottext)> $@
56
57 $(outdir)/%.lsm: %.lsm.in $(depth)/VERSION
58         cat $< | $(sed-version) | $(sed-date) > $@
59
60 $(outdir)/%: %.in
61         cat $< | $(sed-rootdir) > $@
62