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
8 $(MAKE) PACKAGE=$(PACKAGE) package=$(package) -C lily
17 ifeq (,$(findstring metafont,$(STEPMAKE_TEMPLATES)))
18 bin-clean: local-bin-clean
25 local-bin-clean: local-clean
27 ifneq ($(strip $(depth)),.)
29 $(MAKE) -C $(depth) dist
33 $(MAKE) local-distclean
36 $(MAKE) local-distclean
39 rm -f aclocal.m4 configure
43 $(MAKE) local-maintainerclean
44 $(MAKE) local-distclean
47 # This doesn't allow command-line options, is it really useful? -jm
49 ./$(src-depth)/configure
53 @echo "Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)"
54 @echo "Usage: make ["VARIABLE=value"]... [TARGET]"
56 @echo "Targets specific to current directory:"
58 help: generic-help local-help
59 @echo "Generic targets that recurse into subdirectories*:"
60 @echo " all update everything except documentation with images"
61 @echo " clean remove all generated stuff in $(outdir)"
62 @echo " bin-clean same as clean, except that mf/out is preserved"
63 @echo " doc update documentation with images in directory \`out-www'"
64 @echo " doc-stage-1 update only PDF and Info documentation in directory \`out-www'"
65 @echo " doc-clean clean \`out-www' directory"
66 @echo " install install programs and data (prefix=$(prefix))"
67 @echo " uninstall uninstall programs and data"
69 @echo " *Note: Prepend \`local-' (eg. \`local-clean') to restrict"
70 @echo " any of the above commands to the current directory."
72 @echo "Other generic targets:"
73 @echo " default same as the empty target"
74 @echo " bin check the lily directory and rebuild lilypond.exe if needed"
75 @echo " exe update all executables"
76 @echo " help this help"
77 @echo " lib update all libraries"
78 @echo " TAGS generate tagfiles"
80 @echo "\`make' may be invoked from any subdirectory."
84 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
85 mkdir -p $(distdir)/$(localdir)
86 $(LN) $(DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir)
88 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
89 $(LN) $(NON_ESSENTIAL_DIST_FILES:%=$(src-dir)/%) $(distdir)/$(localdir);; \
91 case "$(OUT_DIST_FILES)x" in x) ;; *) \
92 mkdir -p $(distdir)/$(localdir)/$(outdir); \
93 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
95 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
105 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
107 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
108 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
109 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
110 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
114 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(step-bindir)/make-version.py
115 $(PYTHON) $(step-bindir)/make-version.py $< > $@
117 $(outdir)/config.hh: $(config_h)
120 configure: configure.in aclocal.m4
121 NOCONFIGURE=yes $(src-depth)/autogen.sh
128 local-maintainerclean:
131 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
133 ifeq ($(strip $(depth)),.)
139 install: local-install
145 uninstall: local-uninstall
151 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
152 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
154 -include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep)
158 touch $(outdir)/dummy.dep
159 echo '*' > $(outdir)/.gitignore
167 $(config_make): $(top-src-dir)/configure
168 @echo "************************************************************"
169 @echo "configure changed! You should probably reconfigure manually."
170 @echo "************************************************************"
171 (cd $(top-build-dir); ./config.status)
172 touch $@ # do something for multiple simultaneous configs.
175 #### Documentation (website and tarball)
177 # documentation is built in two stages,
178 # plus WWW-post (only at toplevel)
179 # see INSTALL for more information.
194 $(MAKE) out=www WWW-2
195 $(MAKE) out=www WWW-post
198 $(MAKE) out=www local-WWW-1
199 $(MAKE) out=www local-WWW-2
200 $(MAKE) out=www WWW-post
203 $(MAKE) -C $(depth)/scripts/build out=
204 $(MAKE) out=www WWW-1
207 $(MAKE) out=www clean