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 lib TAGS html\
11 check-flower-deps check-lib-deps check-doc-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)
38 $(SHAREDLIBRARY): $(configheader) $(OFILES) $(MODULE_LIBDEPS)
39 $(LD_COMMAND) $(OFILES) -o $@.$(VERSION)
41 ln -sf $(outdir)/$(LIB_PREFIX)$(NAME).so.$(VERSION) $@.$(MAJOR_VERSION)
42 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
116 # ugh. should generate in out/
121 chmod -R a+r $(distdir)
122 chmod a+x `find $(distdir) -type d -print`
124 (cd ./$(depth)/$(outdir); $(TAR) cf - $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
129 # ugh. should generate in out/
133 # nogo, SUBDIRS is handed down to subdir...
134 # $(MAKE) SUBDIRS="Documentation init input tex" localdist
136 chmod -Rf a+rX $(distdir)
137 # ugh, the ugly way, then
138 (cd $(distdir); rm -rf $(NO_DOOS_DIST))
139 cp $(lilyout)/lilypond.exe $(distdir)
140 strip -s $(distdir)/lilypond.exe
141 cp $(mi2muout)/mi2mu.exe $(distdir)
142 strip -s $(distdir)/mi2mu.exe
143 (cd ./$(depth); $(ZIP) $(DIST_NAME).exe.zip $(distdir))
148 localdist: $(DISTFILES) $(OUT_DISTFILES)
149 touch $(outdir)/dummy.dep; \
150 mkdir $(distdir)/$(localdir)/out; \
151 $(LN) $(DISTFILES) $(distdir)/$(localdir)
152 $(LN) $(outdir)/dummy.dep $(OUT_DISTFILES) $(distdir)/$(localdir)/out
154 set -e; for i in $(SUBDIRS); do mkdir $(distdir)/$(localdir)/$$i; \
155 $(MAKE) localdir=$(localdir)/$$i -C $$i localdist; done
159 TAGS:$(all-tag-sources)
160 ifdef all-tag-sources
161 -etags -CT $(all-tag-sources) $(ERROR_LOG)
162 -ctags -CT $(all-tag-sources) $(ERROR_LOG)
170 $(outdir)/version.hh: VERSION
171 sh ./$(lily_bindir)/make-version.sh > $@
174 # should this be in Rules?
175 configure: configure.in aclocal.m4
183 local-maintainerclean:
186 $(MAKE) INSTALL="$(INSTALL) -s" install
188 install: localinstall
193 uninstall: localuninstall
200 $(LIBFLOWER): check-flower-deps
203 $(MAKE) -C $(depth)/flower/ default
205 check-lib-deps: check-flower-deps
206 $(MAKE) -C $(depth)/lib
209 $(MAKE) -C $(depth)/Documentation
212 $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
215 # RedHat rpm package:
217 rpm: check-rpm-doc-deps
218 -cp $(depth)/lilypond-$(TOPLEVEL_VERSION).tar.gz $(rpm-sources)
219 # -cp $(wildcard $(depth)/Documentation/*.xpm) $(rpm-sources)
220 -cp $(wildcard $(depth)/Documentation/$(outdir)/*.gif) $(rpm-sources)
221 $(MAKE) -C $(make-dir) spec
222 rpm -ba $(makeout)/lilypond.spec
225 $(MAKE) -C $(depth)/Documentation gifs
228 $(MAKE) -C $(depth)/mf
230 $(configheader): $(depth)/$(configuration).hh