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