2 # title specific top level makefile for LilyPond
9 # descent order into subdirectories
11 SUBDIRS = buildscripts python scripts \
14 midi2ly po make intl \
15 debian $(builddir)/stepmake \
20 SCRIPTS = configure aclocal.m4
21 README_FILES = CHANGES COPYING DEDICATION NEWS README.mandrake ROADMAP
22 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt FAQ.txt
23 IN_FILES := $(wildcard *.in)
24 EXTRA_DIST_FILES = lilypond-font-lock.el lilypond-mode.el lilypond-init.el vimrc VERSION $(README_FILES) $(SCRIPTS) $(IN_FILES) emacsclient.patch mktexnam.patch lexer-gcc-3.0.patch
25 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
26 INSTALLATION_DIR=$(datadir)
27 INSTALLATION_FILES=$(configuration) VERSION
31 STEPMAKE_TEMPLATES=toplevel po install
32 include $(depth)/make/stepmake.make
36 $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
37 $(footify-all-command)
40 $(MAKE) -C $(depth)/mf
43 $(MAKE) -C Documentation
46 $(MAKE) out=www -C Documentation WWW
49 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
50 my_tfm_path = $(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp
56 $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
60 TOP_HTMLS = index.html short-examples.html long-examples.html
65 $(MAKE) out=www -C input WWW
66 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o short-examples.html input/
70 $(MAKE) out=www -C mutopia WWW
71 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o long-examples.html mutopia/
73 lily: lily/$(outdir)/lilypond
75 lily/$(outdir)/lilypond:
78 local-web: fonts lily $(TOP_HTMLS:%.html=%) footify do-top-doc top-web
81 rm -f `find . -name \*.html~ -print`
82 find `find Documentation input mutopia *.png index.html -type d -name 'out-www'` \
83 -not -name '*.dvi' -not -name '*ly' -not -name '*.tex' \
84 -not -name '*.ps' -not -name '*.eps' -not -name '*pk' \
85 -not -name '*.aux' -not -name '*.cp' -not -name '*.fn' \
86 -not -name '*.vr' -not -name '*.yp' -not -name '*.ky' \
87 -not -name '*.pg' -not -name '*.tmp' -not -name '*.toc' \
88 -not -name '*.fns' -not -name '*.cps' -not -name '*.nexi' \
89 -not -name '*.texi' -not -name '*.texidoc' -not -name '*.tp' \
90 -not -name '*.log' -not -name 'out-www' -not -name '*.dep' \
92 ls *.png *.html >> $(outdir)/weblist
93 cat $(outdir)/weblist | GZIP=-9v tar -czf $(outdir)/web.tar.gz -T -
99 local-WWW-clean: top-WWW-clean
102 $(MAKE) -C Documentation WWW-clean
103 $(MAKE) -C input WWW-clean
104 $(MAKE) -C mutopia WWW-clean
107 rm -f $(TOP_HTMLS) lily-[0-9]*.png
108 $(SHELL) $(buildscript-dir)/clean-fonts.sh