(read_pipe): only store and display error log
[lilypond.git] / GNUmakefile.in
blob6667cc4b2e726dcb48897a340b57213f3ceeaa15
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 README.mandrake ROADMAP THANKS
21 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt NEWS.txt
22 IN_FILES := $(wildcard *.in)
23 EXTRA_DIST_FILES = $(wildcard *.el) vimrc VERSION $(README_FILES) $(SCRIPTS) $(IN_FILES) emacsclient.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=$(config_make) 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 # don't make fontball - we have binary packages for that.
40 web-install:
41 -$(INSTALL) -m 755 -d $(webdir)
42 tar -C $(webdir)/ -xzf $(outdir)/web.tar.gz
44 local-install:
45 $(INSTALL) -d $(local_lilypond_datadir)
47 final-install:
48 @echo
49 @echo " *** Before running, buildscripts/out/lilypond-{profile,login}"
50 @echo " *** must be run. You're advised to source these scripts from your "
51 @echo " *** login scripts. For more information, see Invoking LilyPond in the manual."
52 @echo
54 web-ext = gz html midi pdf png txt ly
56 footify = MAILADDRESS=bug-lilypond@gnu.org $(PYTHON) $(step-bindir)/add-html-footer.py --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION)
58 bla:
59 cd $(builddir) && $(footify) `$(FIND) . -name '*.html' -print`
61 local-WWW-post:
62 $(PYTHON) $(buildscript-dir)/mutopia-index.py -o $(builddir)/examples.html ./
63 cd $(builddir) && $(footify) `$(FIND) . -name '*.html' -print`
64 cd $(builddir) && rm -f `find . -name \*.html~ -print`
65 cd $(builddir) && find Documentation input \
66 $(web-ext:%=-path '*/out-www/*.%' -or) -false \
67 > $(outdir)/weblist
68 echo '<META HTTP-EQUIV="refresh" content="0;URL=Documentation/out-www/index.html">' > $(builddir)/index.html
69 echo '<html><body>Redirecting to the documentation index...</body></html>' >> $(builddir)/index.html
70 cd $(builddir) && ls *.html >> $(outdir)/weblist
71 cat $(outdir)/weblist | (cd $(builddir); GZIP=-9v tar -czf $(outdir)/web.tar.gz -T -)
74 src-ext = c cc yy ll hh icc py scm tex ps texi itexi tely itely sh
76 ALL-TAGS:
77 etags $(shell find . $(src-ext:%=-name '*.%' -or) -false | grep -v '/out')
79 web-clean:
80 $(SHELL) $(buildscript-dir)/clean-fonts.sh
81 $(MAKE) out=www clean
82 $(MAKE) $(builddir)/share/lilypond-force
85 default: $(config_h) builddir-setup
87 builddir-setup: $(builddir)/share/lilypond-force
89 PO_FILES = $(wildcard $(srcdir)/po/*.po)
90 HELP_CATALOGS = $(PO_FILES:$(srcdir)/po/%.po=%)
91 CATALOGS = $(HELP_CATALOGS:lilypond=)
93 $(builddir)/share/lilypond-force:
94 # Preparing LilyPond tree for builddir exec
95 cd $(builddir) && rm -rf lib share
96 mkdir -p $(builddir)/lib/lilypond
97 mkdir -p $(builddir)/share/lilypond
98 mkdir -p $(builddir)/share/lilypond/fonts
99 mkdir -p $(builddir)/share/lilypond/tex
100 cd $(builddir)/lib/lilypond && \
101 ln -s ../../python/$(outconfbase) python
102 cd $(builddir)/share/lilypond && \
103 ln -s $(abs-srcdir)/ly ly && \
104 ln -s ../../mf/$(outconfbase) dvips && \
105 ln -s ../../mf/$(outconfbase) afm && \
106 ln -s ../../mf/$(outconfbase) tfm && \
107 ln -s $(abs-srcdir)/mf && \
108 ln -s $(abs-srcdir)/ps && \
109 ln -s ../../python/$(outconfbase) python && \
110 ln -s $(abs-srcdir)/scm
111 cd $(builddir)/share/lilypond/tex && \
112 ln -s $(abs-srcdir)/tex source && \
113 ln -s ../../../mf/$(outconfbase) generate
114 cd $(builddir)/share/lilypond/fonts && \
115 ln -s $(abs-srcdir)/mf source && \
116 ln -s ../../../mf/$(outconfbase) afm && \
117 ln -s ../../../mf/$(outconfbase) tfm && \
118 ln -s ../../../mf/$(outconfbase) type1
119 $(foreach i,$(CATALOGS), \
120 mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
121 cd $(builddir)/share/locale/$i/LC_MESSAGES && \
122 ln -fs ../../../../po/$(outconfbase)/$i.mo lilypond.mo &&) true
123 touch $@
125 local-clean: builddir-setup-clean
126 builddir-setup-clean:
127 cd $(builddir) && rm -rf share
129 $(config_h): configure.in aclocal.m4
131 # this is to prevent people from getting
132 # undefined symbols when we add them to config.h.in,
133 # and they blindly run "cvs update; make".
135 @echo
136 @echo ' *** $(config_h) is out of date'
137 @echo ' *** Remove it and rerun autogen:'
138 @echo ' rm $(config_h); ./autogen.sh'
139 @echo
140 @false
143 # maybe move into private script?
144 rsync-web:
145 cd out-www && mkdir web && tar -xzf web.tar.gz -C web
146 cd out-www/web && rsync --delete --stats --progress -rltvu -e ssh . x:/var/www/lilypond/doc/v1.9/
147 cd out-www && rm -rf web/