2 # title specific top level makefile for LilyPond
9 # descent order into subdirectories:
11 SUBDIRS = buildscripts scripts flower lily mf midi2ly po \
12 Documentation ly input tex make intl ps scm \
13 debian $(builddir)/stepmake \
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
28 STEPMAKE_TEMPLATES=toplevel yolily-toplevel po install
29 include $(depth)/make/stepmake.make
32 website: fonts htmldoc examples footify
35 $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
36 $(footify-all-command)
39 $(MAKE) -C $(depth)/mf
42 $(MAKE) -C Documentation
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
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)
59 # don't understand this comment --hwn
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.
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`
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
80 $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
84 $(SHELL) $(buildscript-dir)/clean-fonts.sh