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)
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) $@
56 # be careful about deletion.
59 touch $(outdir)/dummy.dep
64 $(MAKE) local-distclean
68 $(MAKE) local-maintainerclean
69 $(MAKE) local-distclean
81 dummydep: $(DUMMYDEPS)
84 # value of $(OSTYPE) on windhoos...; "make $OSTYPE" if you use bash :-)
86 win32: windows32 # win/lose?
89 $(MAKE) -C . "CXX=g++ -D_WINDOWS32"
96 $(MAKE) -C . CXX="gcc-go32 -I/usr/i386-go32/include -I/usr/i386-go32/include/g++ -D_WINDOWS32 -Dcaddr_t=char* -DMAP_SHARED=0"
102 @echo "Makefile for LilyPond $(TOPLEVEL_VERSION)"
104 @echo " $(MAKE) ["VARIABLE=value" ...] [target]"
107 @echo " all clean config dist distclean doc doc++"
108 @echo " exe help lib TAGS"
109 @echo " dos: xcomplile to dos"
110 @echo " windows32: native cygnus-gnu compile"
114 $(MAKE) -C $(depth)/Documentation do-doc
117 # ugh. should generate in out/
122 chmod -R a+r $(distdir)
123 chmod a+x `find $(distdir) -type d -print`
125 (cd ./$(depth)/$(outdir); $(TAR) cf - $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
130 # ugh. should generate in out/
134 # nogo, SUBDIRS is handed down to subdir...
135 # $(MAKE) SUBDIRS="Documentation init input tex" localdist
137 chmod -Rf a+rX $(distdir)
138 # ugh, the ugly way, then
139 (cd $(distdir); rm -rf $(NO_DOOS_DIST))
140 cp $(lilyout)/lilypond.exe $(distdir)
141 strip -s $(distdir)/lilypond.exe
142 cp $(mi2muout)/mi2mu.exe $(distdir)
143 strip -s $(distdir)/mi2mu.exe
144 (cd ./$(depth); $(ZIP) $(DIST_NAME).exe.zip $(distdir))
149 localdist: $(DISTFILES) $(OUT_DISTFILES)
150 touch $(outdir)/dummy.dep; \
151 mkdir $(distdir)/$(localdir)/out; \
152 $(LN) $(DISTFILES) $(distdir)/$(localdir)
153 $(LN) $(outdir)/dummy.dep $(OUT_DISTFILES) $(distdir)/$(localdir)/out
155 set -e; for i in $(SUBDIRS); do mkdir $(distdir)/$(localdir)/$$i; \
156 $(MAKE) localdir=$(localdir)/$$i -C $$i localdist; done
160 TAGS:$(all-tag-sources)
161 ifdef all-tag-sources
162 -etags -CT $(all-tag-sources) $(ERROR_LOG)
163 -ctags -CT $(all-tag-sources) $(ERROR_LOG)
171 $(outdir)/version.hh: VERSION
172 sh ./$(lily_bindir)/make-version.sh > $@
175 # should this be in Rules?
176 configure: configure.in aclocal.m4
184 local-maintainerclean:
187 $(MAKE) INSTALL="$(INSTALL) -s" install
189 install: localinstall
194 uninstall: localuninstall
201 $(LIBFLOWER): check-flower-deps
204 $(MAKE) -C $(depth)/flower/ default
206 check-lib-deps: check-flower-deps
207 $(MAKE) -C $(depth)/lib
210 $(MAKE) -C $(depth)/Documentation
213 $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
216 # RedHat rpm package:
218 rpm: check-rpm-doc-deps
219 -cp $(depth)/lilypond-$(TOPLEVEL_VERSION).tar.gz $(rpm-sources)
220 # -cp $(wildcard $(depth)/Documentation/*.xpm) $(rpm-sources)
221 -cp $(wildcard $(depth)/Documentation/$(outdir)/*.gif) $(rpm-sources)
222 $(MAKE) -C $(make-dir) spec
223 rpm -ba $(makeout)/lilypond.spec
226 $(MAKE) -C $(depth)/Documentation gifs
229 $(MAKE) -C $(depth)/mf
231 $(configheader): $(depth)/$(configuration).hh