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
16 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i all; done
21 # platform specific variables,
23 include ./$(depth)/make/out/Site.make
27 .PRECIOUS: $(makeout)/Site.make
29 # dependency list of executable:
31 EXECUTABLE = $(lily_bindir)/$(NAME)
32 $(EXECUTABLE): $(build) $(OFILES) $(CUSTOMLIBES)
34 $(MAKE) -S $(OFILES) $(SILENT_LOG)
36 $(DO_STRIP) $(STABLEOBS)
38 $(LD_COMMAND) $(OFILES) $(LOADLIBES)
43 $(build): $(depth)/.version
46 # dependency list of library:
48 LIBRARY = $(libdir)/$(LIB_PREFIX)$(NAME)$(LIB_SUFFIX)
49 $(LIBRARY): $(build) $(OFILES) $(CUSTOMLIBES)
51 $(MAKE) $(OFILES) $(SILENT_LOG)
52 $(AR_COMMAND) $(OFILES)
61 rm -f $(allobs) $(alldeps)
63 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
66 distclean: localdistclean
68 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i localdistclean; done
82 dummydep: $(DUMMYDEPS)
85 # value of $(OSTYPE) on windhoos; "make $OSTYPE" if you use bash :-)
95 $(MAKE) -C . CXX="gcc-go32 -I/usr/i386-go32/include -I/usr/i386-go32/include/g++ -D_WIN32 -Dcaddr_t=char* -DMAP_SHARED=0"
102 @echo " $(MAKE) ["VARIABLE=value" ...] [target]"
105 @echo " all clean config dist distclean doc doc++"
106 @echo " exe help lib moduledist TAGS"
107 @echo " dos: xcomplile to dos"
108 @echo " win32: native cygnus-win32 compile"
112 $(MAKE) -C $(depth)/Documentation do-doc
114 # doc++ documentation of classes
116 doc++ -k -p -d $(DOCDIR) $^
121 chmod -Rf a+rX $(distdir)
123 (cd ./$(depth); tar cfz $(DIST_NAME).tar.gz $(DIST_NAME))
124 rm -rf $(distdir)/ # should be trapped
126 localdist: $(DISTFILES)
127 if [ -d out ]; then mkdir $(distdir)/$(localdir)/out; fi
128 ln $(DISTFILES) $(distdir)/$(localdir)
130 set -e; for i in $(SUBDIRS); do mkdir $(distdir)/$(localdir)/$$i; \
131 $(MAKE) localdir=$(localdir)/$$i -C $$i localdist; done
135 -mkdir $(module-distdir)
136 $(MAKE) localmoduledist
137 (cd ./$(depth); tar cfz $(MODULE_DIST_NAME).tar.gz $(MODULE_DIST_NAME))
138 rm -rf $(module-distdir)/ # should be trapped
141 ln $(DISTFILES) $(module-distdir)/$(localdir)
143 set -e; for i in $(SUBDIRS); do mkdir $(module-distdir)/$(localdir)/$$i; done
144 set -e; for i in $(SUBDIRS); do $(MAKE) localdir=$(localdir)/$$i -C $$i localmoduledist; done
147 TAGS:$(all-tag-sources)
148 ifdef all-tag-sources
149 -etags -CT $(all-tag-sources) /dev/null
152 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i TAGS ; done
159 $(outdir)/version.hh: .version
160 ./$(lily_bindir)/make_version > $@
163 # should this be in Rules?
164 configure: configure.in
171 install: localinstall
173 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
178 uninstall: localuninstall
180 set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i uninstall; done
187 $(LIBFLOWER): check-flower-deps
190 $(MAKE) -C $(depth)/flower/ $(outdir)/$(notdir $(LIBFLOWER))
192 check-lily-deps: check-flower-deps
193 $(MAKE) -C $(depth)/lib
196 $(MAKE) -C $(depth)/Documentation
199 $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
202 # RedHat rpm package:
205 # mv ./$(depth)/lilypond-$(TOPLEVEL_VERSION).tar.gz $(rpm-sources)
207 cp ./$(depth)/../releases/lilypond-$(TOPLEVEL_VERSION).tar.gz $(rpm-sources)
208 cp $(doc-dir)/*.gif $(rpm-sources)
209 $(MAKE) -C $(make-dir) spec
210 rpm -ba $(makeout)/lilypond.spec