]> git.donarmstrong.com Git - lilypond.git/blob - Makefile
9c9f9b7737840bfcfc6b763183599a4dfc79319e
[lilypond.git] / Makefile
1 #
2 # project  LilyPond -- the musical typesetter
3 # title    top level makefile for LilyPond  
4 # file     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 = lilypond
19
20 # edit in .version only!
21 MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
22 MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
23 PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
24 # use to send patches, always empty for released version:
25 MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
26 build = ./$(depth)/lily/$(outdir)/.build
27 #
28
29 # generic variables:
30 #
31 include ./$(depth)/make/Variables.make 
32 #
33
34 # descent order into subdirectories:
35 #
36 SUBDIRS = flower lib lily mi2mu \
37         Documentation bin init input tex make
38 #
39
40 # list of distribution files:
41 #
42 # SYMLINKS = # naah, configure
43 SCRIPTS = configure configure.in install-sh
44 README_FILES = ANNOUNCE COPYING NEWS README TODO INSTALL.text
45 DISTFILES= Makefile .dstreamrc .version $(README_FILES) $(SCRIPTS) $(SYMLINKS)
46 #
47
48
49 # generic targets and rules:
50 #
51 include ./$(depth)/make/Targets.make
52 include ./$(depth)/make/Rules.make
53 #
54
55 localdist: configure
56
57 # ugh. I know dep is not quite what is really needed.
58 INSTALL.text: Documentation
59         rm -f INSTALL.text
60         $(MAKE) -C Documentation
61         ln `find -name INSTALL.text|head -1` .
62
63 localclean:
64         rm -f $(allexe) core config.cache config.log config.status 
65
66 localinstall: all
67         $(INSTALL) -d $(bindir)
68         $(INSTALL) -m 755 $(allexe) $(bindir)
69
70 localuninstall:
71         for i in $(allexe); do rm -f $(bindir)/`basename $$i`; done