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): $(OFILES) $(outdir)/version.hh
21 $(MAKE) $(MODULE_LIBDEPS)
23 $(DO_STRIP) $(STABLEOBS)
25 $(LD_COMMAND) $(OFILES) $(LOADLIBES)
30 # dependency list of library:
33 $(AR_COMMAND) $(OFILES)
36 $(SHAREDLIBRARY): $(OFILES) $(MODULE_LIBDEPS)
37 $(LD_COMMAND) $(OFILES) -o $@.$(VERSION)
39 ln -sf $(outdir)/$(LIB_PREFIX)$(NAME).so.$(VERSION) $@.$(MAJOR_VERSION)
40 ln -sf $(LIB_PREFIX)$(NAME).so.$(VERSION) $@
47 make-all-outdirs: make-outdir
53 # be careful about deletion.
56 touch $(outdir)/dummy.dep
61 $(MAKE) local-distclean
65 $(MAKE) local-maintainerclean
66 $(MAKE) local-distclean
78 dummydep: $(DUMMYDEPS)
81 # value of $(OSTYPE) on windhoos...; "make $OSTYPE" if you use bash :-)
83 win32: windows32 # win/lose?
86 $(MAKE) -C . "CXX=g++ -D_WINDOWS32"
93 $(MAKE) -C . CXX="gcc-go32 -I/usr/i386-go32/include -I/usr/i386-go32/include/g++ -D_WINDOWS32 -Dcaddr_t=char* -DMAP_SHARED=0"
99 @echo "Makefile for LilyPond $(TOPLEVEL_VERSION)"
101 @echo " $(MAKE) ["VARIABLE=value" ...] [target]"
104 @echo " all clean config dist distclean doc doc++"
105 @echo " exe help lib TAGS"
106 @echo " dos: xcomplile to dos"
107 @echo " windows32: native cygnus-gnu compile"
111 $(MAKE) -C $(depth)/Documentation do-doc
114 # ugh. should generate in out/
119 chmod -R a+r $(distdir)
120 chmod a+x `find $(distdir) -type d -print`
122 (cd ./$(depth)/$(outdir); $(TAR) cf - $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
127 # ugh. should generate in out/
131 # nogo, SUBDIRS is handed down to subdir...
132 # $(MAKE) SUBDIRS="Documentation init input tex" localdist
134 chmod -Rf a+rX $(distdir)
135 # ugh, the ugly way, then
136 (cd $(distdir); rm -rf $(NO_DOOS_DIST))
137 cp $(lilyout)/lilypond.exe $(distdir)
138 strip -s $(distdir)/lilypond.exe
139 cp $(mi2muout)/mi2mu.exe $(distdir)
140 strip -s $(distdir)/mi2mu.exe
141 (cd ./$(depth); $(ZIP) $(DIST_NAME).exe.zip $(distdir))
146 localdist: $(DISTFILES) $(OUT_DISTFILES)
147 touch $(outdir)/dummy.dep; \
148 mkdir $(distdir)/$(localdir)/out; \
149 $(LN) $(DISTFILES) $(distdir)/$(localdir)
150 $(LN) $(outdir)/dummy.dep $(OUT_DISTFILES) $(distdir)/$(localdir)/out
152 set -e; for i in $(SUBDIRS); do mkdir $(distdir)/$(localdir)/$$i; \
153 $(MAKE) localdir=$(localdir)/$$i -C $$i localdist; done
157 TAGS:$(all-tag-sources)
158 ifdef all-tag-sources
159 -etags -CT $(all-tag-sources) $(ERROR_LOG)
160 -ctags -CT $(all-tag-sources) $(ERROR_LOG)
168 $(outdir)/version.hh: VERSION
169 sh ./$(lily_bindir)/make-version.sh > $@
172 # should this be in Rules?
173 configure: configure.in aclocal.m4
181 local-maintainerclean:
184 $(MAKE) INSTALL="$(INSTALL) -s" install
186 install: localinstall
191 uninstall: localuninstall
198 $(LIBFLOWER): check-flower-deps
201 $(MAKE) -C $(depth)/flower/ default
203 check-lib-deps: check-flower-deps
204 $(MAKE) -C $(depth)/lib
207 $(MAKE) -C $(depth)/Documentation
210 $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
213 # RedHat rpm package:
215 rpm: check-rpm-doc-deps
216 -cp $(depth)/lilypond-$(TOPLEVEL_VERSION).tar.gz $(rpm-sources)
217 # -cp $(wildcard $(depth)/Documentation/*.xpm) $(rpm-sources)
218 -cp $(wildcard $(depth)/Documentation/$(outdir)/*.gif) $(rpm-sources)
219 $(MAKE) -C $(make-dir) spec
220 rpm -ba $(makeout)/lilypond.spec
223 $(MAKE) -C $(depth)/Documentation gifs
226 $(MAKE) -C $(depth)/mf