]> git.donarmstrong.com Git - lilypond.git/blob - make/Toplevel.make.in
release: 0.1.49
[lilypond.git] / make / Toplevel.make.in
1 # -*-Makefile-*-
2 # @configure_input@
3 ########################################################
4 # project  LilyPond -- the musical typesetter
5 # title    top level makefile for LilyPond  
6 # file     Makefile 
7 #
8 # Copyright (c) 1997 by    
9 #       Jan Nieuwenhuizen <jan@digicash.com>
10 #       Han-Wen Nienhuys <hanwen@stack.nl>
11
12 # subdir level:
13 #
14 depth = .
15 #
16
17 # identify module:
18 #
19 NAME = lilypond
20 include VERSION
21 include ./$(depth)/make/Version.make
22
23 # generic variables:
24 #
25 include ./$(depth)/make/Variables.make 
26 #
27
28 # descent order into subdirectories:
29 #
30 SUBDIRS = bin flower lib lily mf mi2mu debian\
31         Documentation init input tex make mutopia
32 #
33
34 # list of distribution files:
35 #
36 SCRIPTS = configure configure.in install-sh aclocal.m4
37 README_FILES = BUGS DEDICATION ANNOUNCE-0.1 ANNOUNCE \
38  COPYING ONEWS NEWS README TODO \
39  INSTALL.txt AUTHORS.txt PATCHES.txt
40 EXTRA_DISTFILES = .dstreamrc mudela-mode.el VERSION $(README_FILES) $(SCRIPTS) $(SYMLINKS)
41
42 # do not dist ./Makefile (is copied from make/Toplevel.make)
43 DISTFILES:=$(EXTRA_DISTFILES)# Makefile $(ALL_SOURCES)
44 #
45
46
47 # generic targets and rules:
48 #
49 include ./$(depth)/make/Targets.make
50 include ./$(depth)/make/Rules.make
51 #
52
53 localdist: configure
54
55 INSTALL.txt: check-doc-deps check-mf-deps
56         rm -f INSTALL.txt
57         ln `$(FIND) ./ -name INSTALL.txt -print |head -1` .
58
59 # all machine generated junk resides in out/
60 distclean: 
61         set -e; for i in `find . -type d -name 'out' -print`; do \
62                 rm -f $$i/* $$i/.build; done            
63         rm -rf *-build-dir
64         ( cd flower && rm -f config.cache config.status config.log )
65         rm -f Makefile config.cache config.status config.log
66
67
68
69 localclean:
70         rm -f core config.cache config.log config.status 
71         rm -f $(outdir)/*.{class,html,gif}
72
73 Makefile: make/Toplevel.make.in
74         echo '# WARNING WARNING WARNING WARNING' > $@
75         echo '# do not edit! this is generated from make/Toplevel.make.in' >> $@
76         cat $< >> $@
77         chmod -w $@
78