1 .PHONY : all clean bin-clean config default dist exe help html lib TAGS\
2 po doc doc-stage-1 WWW-1 WWW-2 WWW-post local-WWW-1 local-WWW-2\
9 $(MAKE) PACKAGE=$(PACKAGE) package=$(package) -C lily
19 find . -name "*.log" -delete
21 ifeq (,$(findstring metafont,$(STEPMAKE_TEMPLATES)))
22 bin-clean: local-bin-clean
29 local-bin-clean: local-clean
31 ifneq ($(strip $(depth)),.)
33 $(MAKE) -C $(depth) dist
37 $(MAKE) local-distclean
40 $(MAKE) local-distclean
43 rm -f aclocal.m4 configure
47 $(MAKE) local-maintainerclean
48 $(MAKE) local-distclean
51 # This doesn't allow command-line options, is it really useful? -jm
53 ./$(src-depth)/configure
57 @echo "Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)"
58 @echo "Usage: make ["VARIABLE=value"]... [TARGET]"
60 @echo "Targets specific to current directory:"
62 help: generic-help local-help
63 @echo "Generic targets that recurse into subdirectories*:"
64 @echo " all update everything except documentation with images"
65 @echo " clean remove all generated stuff in $(outdir)"
66 @echo " bin-clean same as clean, except that mf/out is preserved"
67 @echo " doc update documentation with images in directory \`out-www'"
68 @echo " doc-stage-1 update only PDF and Info documentation in directory \`out-www'"
69 @echo " doc-clean clean \`out-www' directory"
70 @echo " install install programs and data (prefix=$(prefix))"
71 @echo " uninstall uninstall programs and data"
73 @echo " *Note: Prepend \`local-' (eg. \`local-clean') to restrict"
74 @echo " any of the above commands to the current directory."
76 @echo "Other generic targets:"
77 @echo " default same as the empty target"
78 @echo " bin check the lily directory and rebuild lilypond.exe if needed"
79 @echo " exe update all executables"
80 @echo " help this help"
81 @echo " lib update all libraries"
82 @echo " TAGS generate tagfiles"
84 @echo "\`make' may be invoked from any subdirectory."
88 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
89 mkdir -p $(distdir)/$(localdir)
90 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
92 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
93 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
95 case "$(OUT_DIST_FILES)x" in x) ;; *) \
96 mkdir -p $(distdir)/$(localdir)/$(outdir); \
97 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
99 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
109 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
111 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
112 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
113 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
114 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
118 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
119 $(PYTHON) $(step-bindir)/make-version.py $< > $@
121 $(outdir)/config.hh: $(config_h)
124 configure: configure.in aclocal.m4
125 NOCONFIGURE=yes $(src-depth)/autogen.sh
132 local-maintainerclean:
135 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
137 ifeq ($(strip $(depth)),.)
143 install: local-install
149 uninstall: local-uninstall
155 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
156 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
158 -include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep)
162 touch $(outdir)/dummy.dep
163 echo '*' > $(outdir)/.gitignore
171 $(config_make): $(top-src-dir)/configure
172 @echo "************************************************************"
173 @echo "configure changed! You should probably reconfigure manually."
174 @echo "************************************************************"
175 (cd $(top-build-dir); ./config.status)
176 touch $@ # do something for multiple simultaneous configs.
179 #### Documentation (website and tarball)
181 # documentation is built in two stages,
182 # plus WWW-post (only at toplevel)
183 # see INSTALL for more information.
198 $(MAKE) out=www WWW-2
199 $(MAKE) out=www WWW-post
202 $(MAKE) out=www local-WWW-1
203 $(MAKE) out=www local-WWW-2
204 $(MAKE) out=www WWW-post
207 $(MAKE) -C $(depth)/scripts/build out=
208 $(MAKE) out=www WWW-1
211 $(MAKE) out=www clean