* Documentation/index.html.in: url typo.
[lilypond.git] / GNUmakefile.in
bloba7babd1db28efbf7467f084c76f2ed79d7d16f6f
1 # -*-Makefile-*-
2 # title specific top level makefile for LilyPond
4 # subdir level:
6 depth = .
9 # descent order into subdirectories
11 SUBDIRS = buildscripts python scripts \
12 flower lily \
13 mf ly tex ps scm \
14 po make \
15 cygwin debian $(builddir)/stepmake \
16 Documentation input
19 SCRIPTS = configure aclocal.m4 autogen.sh
20 README_FILES = ChangeLog COPYING DEDICATION NEWS README.mandrake ROADMAP THANKS
21 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.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 server.el.patch darwin.patch .cvsignore lexer-gcc-3.1.sh lilypond.words
24 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
25 INSTALLATION_DIR=$(local_lilypond_datadir)
26 INSTALLATION_FILES=$(configuration) VERSION
28 # bootstrap stepmake:
30 STEPMAKE_TEMPLATES=toplevel po install
31 include $(depth)/make/stepmake.make
33 doc:
34 $(MAKE) -C Documentation
36 pfa-fonts:
37 $(MAKE) MAKE_PFA_FILES=1 -C mf
38 (cd $(builddir)/share/lilypond/fonts && \
39 tar czvf ../../../$(outbase)/type1.tar.gz type1/*.pfa type1/fonts.* type1/lilypond.* )
41 install-html-doc:
42 $(INSTALL) -m 755 -d $(local_package_docdir)
43 tar -C $(local_package_docdir)/ -xzf $(outdir)/web.tar.gz
45 local-install:
46 $(INSTALL) -d $(local_lilypond_datadir)
48 final-install:
49 @echo
50 @echo " *** Before running, buildscripts/out/lilypond-{profile,login}"
51 @echo " *** must be run. You're advised to source these scripts from your "
52 @echo " *** login scripts. For more information, see Invoking LilyPond in the manual."
53 @echo
55 web-ext = gz html midi pdf png txt ly
57 footify=$(PYTHON) $(step-bindir)/add-html-footer.py --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION)
59 local-web-post:
60 $(footify) `$(FIND) . -name '*.html' -print`
61 cd $(builddir) && rm -f `find . -name \*.html~ -print`
62 cd $(builddir) && find Documentation input \
63 $(web-ext:%=-path '*/out-www/*.%' -or) -false \
64 > $(outdir)/weblist
65 echo '<META HTTP-EQUIV="refresh" content="2;URL=Documentation/out-www/index.html">' > $(builddir)/index.html
66 cd $(builddir) && ls *.html >> $(outdir)/weblist
67 cat $(outdir)/weblist | (cd $(builddir); GZIP=-9v tar -czf $(outdir)/web.tar.gz -T -)
69 src-ext = c cc yy ll hh icc py scm tex ps texi itexi tely itely sh
71 ALL-TAGS:
72 etags $(shell find . $(src-ext:%=-name '*.%' -or) -false | grep -v '/out')
74 web-clean:
75 $(SHELL) $(buildscript-dir)/clean-fonts.sh
76 $(MAKE) out=www clean
80 default: $(config_h) builddir-setup
82 builddir-setup: $(builddir)/share/lilypond-force
84 PO_FILES = $(wildcard $(srcdir)/po/*.po)
85 HELP_CATALOGS = $(PO_FILES:$(srcdir)/po/%.po=%)
86 CATALOGS = $(HELP_CATALOGS:lilypond=)
88 $(builddir)/share/lilypond-force:
89 # Preparing LilyPond tree for builddir exec
90 cd $(builddir) && rm -rf lib share
91 mkdir -p $(builddir)/lib/lilypond
92 mkdir -p $(builddir)/share/lilypond
93 mkdir -p $(builddir)/share/lilypond/fonts
94 mkdir -p $(builddir)/share/lilypond/tex
95 cd $(builddir)/lib/lilypond && \
96 ln -s ../../python/$(outconfbase) python
97 cd $(builddir)/share/lilypond && \
98 ln -s $(abs-srcdir)/ly ly && \
99 ln -s ../../mf/$(outconfbase) dvips && \
100 ln -s ../../mf/$(outconfbase) afm && \
101 ln -s ../../mf/$(outconfbase) tfm && \
102 ln -s $(abs-srcdir)/mf && \
103 ln -s $(abs-srcdir)/ps && \
104 ln -s ../../python/$(outconfbase) python && \
105 ln -s $(abs-srcdir)/scm
106 cd $(builddir)/share/lilypond/tex && \
107 ln -s $(abs-srcdir)/tex source && \
108 ln -s ../../../mf/$(outconfbase) generate
109 cd $(builddir)/share/lilypond/fonts && \
110 ln -s $(abs-srcdir)/mf source && \
111 ln -s ../../../mf/$(outconfbase) afm && \
112 ln -s ../../../mf/$(outconfbase) tfm && \
113 ln -s ../../../mf/$(outconfbase) type1
114 $(foreach i,$(CATALOGS), \
115 mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
116 cd $(builddir)/share/locale/$i/LC_MESSAGES && \
117 ln -fs ../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
118 touch $@
120 local-clean: builddir-setup-clean
121 builddir-setup-clean:
122 cd $(builddir) && rm -rf share
124 $(config_h): configure.in aclocal.m4
126 # this is to prevent people from getting
127 # undefined symbols when we add them to config.h.in,
128 # and they blindly run "cvs update; make".
130 @echo
131 @echo ' *** $(config_h) is out of date'
132 @echo ' *** Remove it and rerun autogen:'
133 @echo ' rm $(config_h); ./autogen.sh'
134 @echo
135 @false