2 # project LilyPond -- the musical typesetter
3 # title generic make targets
4 # file make/Targets.make
6 # Copyright (c) 1997 by
7 # Jan Nieuwenhuizen <jan@digicash.com>
8 # Han-Wen Nienhuys <hanwen@stack.nl>
10 .PHONY : all clean config default dist doc doc++ dummy exe help html lib TAGS\
11 check-flower-deps check-lib-deps check-doc-deps check-html-deps
17 # dependency list of executable:
20 $(EXECUTABLE): $(configheader) $(OFILES) $(outdir)/version.hh
22 $(MAKE) $(MODULE_LIBDEPS)
25 $(DO_STRIP) $(STABLEOBS)
27 $(LD_COMMAND) $(OFILES) $(LOADLIBES)
32 # dependency list of library:
34 $(LIBRARY): $(configheader) $(OFILES)
35 $(AR_COMMAND) $(OFILES)
36 $(AR) ts $@ #silly irix
39 $(SHAREDLIBRARY): $(configheader) $(OFILES) $(MODULE_LIBDEPS)
40 $(LD_COMMAND) $(OFILES) -o $@.$(VERSION)
42 ln -sf $(outdir)/$(LIB_PREFIX)$(NAME).so.$(VERSION) $@.$(MAJOR_VERSION)
43 ln -sf $(LIB_PREFIX)$(NAME).so.$(VERSION) $@
55 # be careful about deletion.
58 touch $(outdir)/dummy.dep
63 $(MAKE) local-distclean
67 $(MAKE) local-maintainerclean
68 $(MAKE) local-distclean
80 dummydep: $(DUMMYDEPS)
83 # value of $(OSTYPE) on windhoos...; "make $OSTYPE" if you use bash :-)
85 win32: windows32 # win/lose?
88 $(MAKE) -C . "CXX=g++ -D_WINDOWS32"
95 $(MAKE) -C . CXX="gcc-go32 -I/usr/i386-go32/include -I/usr/i386-go32/include/g++ -D_WINDOWS32 -Dcaddr_t=char* -DMAP_SHARED=0"
101 @echo "Makefile for LilyPond $(TOPLEVEL_VERSION)"
103 @echo " $(MAKE) ["VARIABLE=value" ...] [target]"
106 @echo " all clean config dist distclean doc doc++"
107 @echo " exe help lib TAGS"
108 @echo " dos: xcomplile to dos"
109 @echo " windows32: native cygnus-gnu compile"
113 # $(MAKE) -C $(depth)/Documentation do-doc
114 $(MAKE) -C $(depth)/Documentation all
118 # ugh. should generate in out/
123 chmod -R a+r $(distdir)
124 chmod a+x `find $(distdir) -type d -print`
126 (cd ./$(depth)/$(outdir); $(TAR) cf - $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
131 # ugh. should generate in out/
135 # nogo, SUBDIRS is handed down to subdir...
136 # $(MAKE) SUBDIRS="Documentation init input tex" localdist
138 chmod -Rf a+rX $(distdir)
139 # ugh, the ugly way, then
140 (cd $(distdir); rm -rf $(NO_DOOS_DIST))
141 ln $(lilyout)/lilypond $(distdir)/bin/lilypond.exe
142 strip -s $(distdir)/bin/lilypond.exe
143 ln $(mi2muout)/mi2mu $(distdir)/bin/mi2mu.exe
144 strip -s $(distdir)/bin/mi2mu.exe
145 (cd ./$(depth); $(ZIP) $(outdir)/$(DIST_NAME).exe.zip $(distdir))
150 localdist: $(DISTFILES) $(OUT_DISTFILES)
151 touch $(outdir)/dummy.dep; \
152 mkdir $(distdir)/$(localdir)/out; \
153 $(LN) $(DISTFILES) $(distdir)/$(localdir)
154 $(LN) $(outdir)/dummy.dep $(OUT_DISTFILES) $(distdir)/$(localdir)/out
156 set -e; for i in $(SUBDIRS); do mkdir $(distdir)/$(localdir)/$$i; \
157 $(MAKE) localdir=$(localdir)/$$i -C $$i localdist; done
161 TAGS:$(all-tag-sources)
162 ifdef all-tag-sources
163 -etags -CT $(all-tag-sources) $(ERROR_LOG)
164 -ctags -CT $(all-tag-sources) $(ERROR_LOG)
172 $(outdir)/version.hh: VERSION
173 sh ./$(lily_bindir)/make-version.sh > $@
176 # should this be in Rules?
177 configure: configure.in aclocal.m4
185 local-maintainerclean:
188 $(MAKE) INSTALL="$(INSTALL) -s" install
190 install: localinstall
195 uninstall: localuninstall
202 $(LIBFLOWER): check-flower-deps
205 $(MAKE) -C $(depth)/flower/ default
207 check-lib-deps: check-flower-deps
208 $(MAKE) -C $(depth)/lib
211 $(MAKE) -C $(depth)/Documentation
214 $(MAKE) -C $(depth)/Documentation html
217 $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
220 # RedHat rpm package:
222 rpm: check-rpm-doc-deps
223 -cp $(depth)/lilypond-$(TOPLEVEL_VERSION).tar.gz $(rpm-sources)
224 # -cp $(wildcard $(depth)/Documentation/*.xpm) $(rpm-sources)
225 -cp $(wildcard $(depth)/Documentation/$(outdir)/*.gif) $(rpm-sources)
226 $(MAKE) -C $(make-dir) spec
227 rpm -ba $(makeout)/lilypond.spec
230 $(MAKE) -C $(depth)/Documentation gifs
233 $(MAKE) -C $(depth)/mf
235 $(configheader): $(depth)/$(configuration).hh