lilypond-1.3.138
[lilypond.git] / GNUmakefile.in
blob9bf8f5caa3a6d2bf49ca62aebea5e49b3ea96a76
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)
22 INSTALLATION_DIR=$(datadir)
23 INSTALLATION_FILES=$(builddir)/config.make VERSION
25 # bootstrap stepmake:
27 STEPMAKE_TEMPLATES=toplevel yolily-toplevel po install
28 include $(depth)/make/stepmake.make
31 website: fonts htmldoc examples footify
33 footify:
34 $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
35 $(footify-all-command)
37 fonts:
38 $(MAKE) -C $(depth)/mf
40 doc:
41 $(MAKE) -C Documentation
43 htmldoc:
44 $(MAKE) out='www' local-WWW
45 $(MAKE) out='www' -C Documentation WWW
46 rm -f `find . -name \*.html~ -print`
47 $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
48 $(footify-all-command)
49 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
50 tar cfz $(outdir)/htmldoc.tar.gz `cat wwwlist` `ls *.png $(ERRORLOG)` index.html
52 examples:
53 $(MAKE) out='www' -C input WWW
54 $(MAKE) out='www' -C mutopia WWW
55 # arg, should not break concept of recursive make;
56 # this breaks links (and dependencies, see above)
58 # don't understand this comment --hwn
60 # See below. The footify-all you had before caused dead links on the
61 # webpage, because the footify command assumes it can calculate the location
62 # of index.html from the current depth. That doesn't work, if you don't
63 # use recursive make like we do everywhere else; leads to bugs that you
64 # make a specific fix for.
66 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o short-examples.html input/
67 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o long-examples.html mutopia/
68 #$(footify-all-command)
69 $(footify) --index=./ `$(FIND) . -name '*.html' -print`
70 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 # Kpathsea is overkill, and a horror/impossible to compile without compiling
73 # and using a matching TeX (well, I gave up trying for now).
74 my_tfm_path=$(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp
76 local-install:
77 mkdir -p $(datadir)
78 ifeq ($(KPATHSEA),0)
79 $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
80 endif
82 local-WWW-clean:
83 $(SHELL) $(buildscript-dir)/clean-fonts.sh