]> git.donarmstrong.com Git - lilypond.git/blob - make/Toplevel.make.in
769b19fda0bfd122744370ff6cebb20d1d261799
[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
32 #
33
34 # list of distribution files:
35 #
36 SCRIPTS = configure configure.in install-sh aclocal.m4
37 README_FILES = BUGS DEDICATION ANNOUNCE COPYING ONEWS NEWS README TODO \
38         INSTALL.text AUTHORS.text
39 EXTRA_DISTFILES = .dstreamrc mudela-mode.el VERSION $(README_FILES) $(SCRIPTS) $(SYMLINKS)
40
41 # do not dist ./Makefile (is copied from make/Toplevel.make)
42 DISTFILES:=$(EXTRA_DISTFILES)# Makefile $(ALL_SOURCES)
43 #
44
45
46 # generic targets and rules:
47 #
48 include ./$(depth)/make/Targets.make
49 include ./$(depth)/make/Rules.make
50 #
51
52 localdist: configure
53
54 INSTALL.text: check-doc-deps
55         rm -f INSTALL.text
56         ln `$(FIND) ./ -name INSTALL.text|head -1` .
57
58 # all machine generated junk resides in out/
59 distclean: 
60         set -e; for i in `find -type d -name 'out'`; do \
61                 rm -f $$i/*; done               
62         rm -rf *-build-dir
63         rm -f Makefile config.cache config.status config.log
64
65
66
67 localclean:
68         rm -f core config.cache config.log config.status 
69         rm -f $(outdir)/*.{class,html,gif}
70
71 Makefile: make/Toplevel.make.in
72         echo '# WARNING WARNING WARNING WARNING' > $@
73         echo '# do not edit! this is generated from make/Toplevel.make.in' >> $@
74         cat $< >> $@
75