1 .PHONY : all clean bin-clean 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
47 $(MAKE) local-maintainerclean
48 $(MAKE) local-distclean
51 @echo "Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)"
52 @echo "Usage: make ["VARIABLE=value"]... [TARGET]"
54 @echo "Targets specific to current directory:"
56 help: generic-help local-help
57 @echo "Generic targets that recurse into subdirectories*:"
58 @echo " all update everything except documentation with images"
59 @echo " clean remove all generated stuff in $(outdir)"
60 @echo " bin-clean same as clean, except that mf/out is preserved"
61 @echo " doc update documentation with images in directory \`out-www'"
62 @echo " doc-stage-1 update only PDF and Info documentation in directory \`out-www'"
63 @echo " doc-clean clean \`out-www' directory"
64 @echo " install install programs and data (prefix=$(prefix))"
65 @echo " uninstall uninstall programs and data"
67 @echo " *Note: Prepend \`local-' (eg. \`local-clean') to restrict"
68 @echo " any of the above commands to the current directory."
70 @echo "Other generic targets:"
71 @echo " default same as the empty target"
72 @echo " bin check the lily directory and rebuild lilypond.exe if needed"
73 @echo " exe update all executables"
74 @echo " help this help"
75 @echo " lib update all libraries"
76 @echo " TAGS generate tagfiles"
78 @echo "\`make' may be invoked from any subdirectory that contains a GNUmakefile."
82 local-dist: $(OUT_DIST_FILES)
83 case "$(OUT_DIST_FILES)x" in x) ;; \
84 *) mkdir -p $(distdir)/$(localdir)/$(outdir) && \
85 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
87 $(foreach i, $(SUBDIRS), $(MAKE) top-src-dir=$(top-src-dir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
97 DEEPER_TAGS_FILES = $(shell find $(pwd) -mindepth 2 -name 'TAGS')
99 -if [ -n "$(TAGS_HEADERS)$(TAGS_SOURCES)$(DEEPER_TAGS_FILES)" ]; then \
100 etags $(ETAGS_FLAGS) $(DEEPER_TAGS_FILES:%=--include=%) \
101 $(TAGS_SOURCES) $(TAGS_HEADERS) $(ERROR_LOG) ; \
102 ctags $(CTAGS_FLAGS) $(TAGS_SOURCES) $(TAGS_HEADERS) \
106 # Don't use $(buildscript-dir)/make-version, because it is not known whether
107 # build process has visited scripts/build
108 $(outdir)/version.hh: $(depth)/VERSION $(config_make) $(top-src-dir)/scripts/build/make-version.py
109 $(PYTHON) $(top-src-dir)/scripts/build/make-version.py $< > $@
111 $(outdir)/config.hh: $(config_h)
114 configure: configure.in aclocal.m4
115 NOCONFIGURE=yes $(src-depth)/autogen.sh
122 local-maintainerclean:
125 $(MAKE) INSTALLPY="$(INSTALLPY) -s" install
127 ifeq ($(strip $(depth)),.)
133 install: local-install
139 uninstall: local-uninstall
145 -$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
146 cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
148 -include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep)
152 touch $(outdir)/dummy.dep
153 echo '*' > $(outdir)/.gitignore
161 $(config_make): $(top-src-dir)/configure
162 @echo "************************************************************"
163 @echo "configure changed! You should probably reconfigure manually."
164 @echo "************************************************************"
165 (cd $(top-build-dir); ./config.status)
166 touch $@ # do something for multiple simultaneous configs.
169 #### Documentation (website and tarball)
171 # documentation is built in two stages,
172 # plus WWW-post (only at toplevel)
173 # see INSTALL for more information.
188 $(MAKE) out=www WWW-2
189 $(MAKE) out=www WWW-post
192 $(MAKE) out=www local-WWW-1
193 $(MAKE) out=www local-WWW-2
194 $(MAKE) out=www WWW-post
197 $(MAKE) -C $(depth)/scripts/build out=
198 $(MAKE) out=www WWW-1
201 $(MAKE) out=www clean