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