]> git.donarmstrong.com Git - lilypond.git/blob - GNUmakefile.in
f5b95d74375d73eb6ab9199b58e37b5613584f89
[lilypond.git] / GNUmakefile.in
1 # -*-Makefile-*-
2 # title    specific top level makefile for LilyPond  
3
4 # subdir level:
5 #
6 depth = .
7 #
8
9 # descent order into subdirectories:
10 #
11 SUBDIRS = buildscripts scripts flower lily mf midi2ly po \
12         Documentation ly input tex make intl ps scm \
13         debian $(builddir)/stepmake \
14         mutopia ports
15 #
16
17 SCRIPTS = configure aclocal.m4
18 README_FILES =  DEDICATION COPYING NEWS CHANGES ROADMAP
19 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt FAQ.txt
20 IN_FILES := $(wildcard *.in)
21 EXTRA_DIST_FILES = lilypond-font-lock.el lilypond-mode.el vimrc VERSION $(README_FILES)  $(SCRIPTS) $(IN_FILES)  emacsclient.patch
22 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
23 INSTALLATION_DIR=$(datadir)
24 INSTALLATION_FILES=$(configuration) VERSION
25
26 # bootstrap stepmake:
27 #
28 STEPMAKE_TEMPLATES=toplevel yolily-toplevel po install
29 include $(depth)/make/stepmake.make 
30 #
31
32 website: fonts htmldoc examples  footify
33
34 footify:
35         $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
36         $(footify-all-command)
37
38 fonts:
39         $(MAKE) -C $(depth)/mf 
40
41 doc:
42         $(MAKE) -C Documentation
43
44 htmldoc: 
45         $(MAKE) out='www' local-WWW
46         $(MAKE) out='www' -C Documentation WWW
47         rm -f `find . -name \*.html~ -print`
48         $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
49         $(footify-all-command)
50         find `find Documentation -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www'  > wwwlist
51         tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` `ls *.png $(ERRORLOG)`  index.html
52
53 examples:
54         $(MAKE) out='www' -C input WWW
55         $(MAKE) out='www' -C mutopia WWW
56 # arg, should not break concept of recursive make;
57 # this breaks links (and dependencies, see above)
58
59 # don't understand this comment --hwn
60
61 # See below.  The footify-all you had before caused dead links on the
62 # webpage, because the footify command assumes it can calculate the location
63 # of index.html from the current depth.  That doesn't work, if you don't
64 # use recursive make like we do everywhere else; leads to bugs that you
65 # make a specific fix for.
66
67         $(PYTHON) $(buildscript-dir)/mutopia-index.py -o short-examples.html input/
68         $(PYTHON) $(buildscript-dir)/mutopia-index.py -o long-examples.html mutopia/
69 #$(footify-all-command)
70         $(footify) --index=./ `$(FIND) . -name '*.html' -print`
71         tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' --exclude='*.ppm' -czf $(outdir)/examples.tar.gz *-examples.html  `find input mutopia -type d -name 'out-www' -print`
72
73 # Kpathsea is overkill, and a horror/impossible to compile without compiling
74 # and using a matching TeX (well, I gave up trying for now).
75 my_tfm_path=$(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp 
76
77 local-install:
78         mkdir -p $(datadir)
79 ifeq ($(KPATHSEA),0)
80         $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
81 endif
82
83 local-WWW-clean:
84         $(SHELL) $(buildscript-dir)/clean-fonts.sh
85