lilypond-1.3.146
[lilypond.git] / GNUmakefile.in
blob42da1397ef756fab80a1d894d914eb70128d2233
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 \
12 Documentation ly input tex make intl ps scm \
13 debian $(builddir)/stepmake \
14 mutopia ports
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
26 # bootstrap stepmake:
28 STEPMAKE_TEMPLATES=toplevel po install
29 include $(depth)/make/stepmake.make
32 footify:
33 $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
34 $(footify-all-command)
36 fonts:
37 $(MAKE) -C $(depth)/mf
39 doc: lily fonts
40 $(MAKE) -C Documentation
42 web-doc:
43 $(MAKE) out=www -C Documentation WWW
44 $(MAKE) footify
46 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
47 my_tfm_path = $(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp
50 local-install:
51 mkdir -p $(datadir)
52 ifeq ($(KPATHSEA),0)
53 $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
54 endif
57 TOP_HTMLS = index.html short-examples.html long-examples.html
59 index: web-doc
61 short-examples:
62 $(MAKE) out=www -C input WWW
63 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o short-examples.html input/
66 long-examples:
67 $(MAKE) out=www -C mutopia WWW
68 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o long-examples.html mutopia/
70 lily: lily/$(outdir)/lilypond
72 lily/$(outdir)/lilypond:
73 $(MAKE) -C lily
75 local-web: fonts lily $(TOP_HTMLS:%.html=%) footify do-top-doc top-web
77 top-web:
78 rm -f `find . -name \*.html~ -print`
79 find `find Documentation input mutopia *.png index.html -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www' > $(outdir)/weblist
80 ls *.png *.html >> $(outdir)/weblist
81 cat $(outdir)/weblist | tar -czf $(outdir)/web.tar.gz -T -
83 #WWW: local-WWW
85 web: local-web
87 local-WWW-clean: top-WWW-clean
89 WWW-clean:
90 $(MAKE) -C Documentation WWW-clean
91 $(MAKE) -C input WWW-clean
92 $(MAKE) -C mutopia WWW-clean
94 top-WWW-clean:
95 rm -f $(TOP_HTMLS)
96 $(SHELL) $(buildscript-dir)/clean-fonts.sh
100 WWW: