cobol
[lilypond.git] / GNUmakefile.in
blob1313689a2c8815dbdc3b67f34d620ef9e3c50cf6
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 \
12 mf ly tex ps scm \
13 python po make intl \
14 debian $(builddir)/stepmake \
15 Documentation input \
16 mutopia
19 SCRIPTS = configure aclocal.m4 autogen.sh
20 README_FILES = ChangeLog CHANGES COPYING DEDICATION NEWS README.mandrake ROADMAP
21 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt FAQ.txt
22 IN_FILES := $(wildcard *.in)
23 EXTRA_DIST_FILES = $(wildcard *.el) vimrc VERSION $(README_FILES) $(SCRIPTS) $(IN_FILES) emacsclient.patch lexer-gcc-3.0.patch darwin.patch .cvsignore
24 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
25 INSTALLATION_DIR=$(datadir)
26 INSTALLATION_FILES=$(configuration) VERSION
28 # bootstrap stepmake:
30 STEPMAKE_TEMPLATES=toplevel po install
31 include $(depth)/make/stepmake.make
34 footify:
35 $(footify) --index=./ `$(FIND) . -maxdepth 1 -name '*.html' -print`
36 $(footify-all-command)
39 fonts:
40 $(MAKE) -C $(depth)/mf
42 doc: lily fonts
43 $(MAKE) -C Documentation
45 web-doc: pfa-fonts
46 $(MAKE) out=www -C Documentation WWW
47 $(MAKE) footify
49 # KPATHSEA=0: Hack for compiling without kpathsea -- not recommended
50 my_tfm_path = $(TFM_PATH) /tmp /tmp /tmp /tmp /tmp /tmp
53 local-install:
54 mkdir -p $(datadir)
55 ifeq ($(KPATHSEA),0)
56 $(foreach i, 1 2 3 4 5, rm -f $(datadir)/tfm.$(i); $(LN_S) $(word $(i), $(my_tfm_path)) $(datadir)/tfm.$(i) ; )
57 endif
60 TOP_HTMLS = index.html short-examples.html long-examples.html
62 index: web-doc
64 short-examples: pfa-fonts
65 $(MAKE) out=www -C input WWW
66 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o short-examples.html input/
69 long-examples: pfa-fonts
70 $(MAKE) out=www -C mutopia WWW
71 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o long-examples.html mutopia/
73 pfa-fonts:
74 $(MAKE) MAKE_PFA_FILES=1 -C mf
76 lily: lily/$(outdir)/lilypond
78 lily/$(outdir)/lilypond:
79 $(MAKE) -C lily
81 local-web: fontpaths fonts lily $(TOP_HTMLS:%.html=%) footify do-top-doc top-web
83 top-web:
84 rm -f `find . -name \*.html~ -print`
85 find `find Documentation input mutopia *.png index.html -type d -name 'out-www'` \
86 -not -name '*.dvi' -not -name '*ly' -not -name '*.tex' \
87 -not -name '*.ps' -not -name '*.eps' -not -name '*pk' \
88 -not -name '*.aux' -not -name '*.cp' -not -name '*.fn' \
89 -not -name '*.vr' -not -name '*.yp' -not -name '*.ky' \
90 -not -name '*.pg' -not -name '*.tmp' -not -name '*.toc' \
91 -not -name '*.fns' -not -name '*.cps' -not -name '*.nexi' \
92 -not -name '*.texi' -not -name '*.texidoc' -not -name '*.tp' \
93 -not -name '*.log' -not -name 'out-www' -not -name '*.dep' \
94 > $(outdir)/weblist
95 ls *.png *.html >> $(outdir)/weblist
96 cat $(outdir)/weblist | GZIP=-9v tar -czf $(outdir)/web.tar.gz -T -
98 #WWW: local-WWW
100 web: local-web
102 local-WWW-clean: top-WWW-clean
104 WWW-clean:
105 $(MAKE) -C Documentation WWW-clean
106 $(MAKE) -C input WWW-clean
107 $(MAKE) -C mutopia WWW-clean
109 top-WWW-clean:
110 rm -f $(TOP_HTMLS) lily-[0-9]*.png
111 $(SHELL) $(buildscript-dir)/clean-fonts.sh
115 WWW:
117 fontpaths:
118 -ln -s $(depth)/mf/out dvips
119 -mkdir -p fonts
120 -rm fonts/source
121 -ln -s ../$(depth)/mf fonts/source
122 -ln -s ../$(depth)/mf/out fonts/afm
123 -ln -s ../$(depth)/mf/out fonts/tfm
124 -ln -s ../$(depth)/mf/out fonts/type1