1 .PHONY : all clean config default diff dist doc exe help html lib TAGS\
10 # be careful about deletion.
15 ifneq ($(strip $(depth)),.)
22 $(MAKE) local-distclean
26 $(MAKE) local-maintainerclean
27 $(MAKE) local-distclean
41 Makefile for $(PACKAGE_NAME) $(TOPLEVEL_VERSION)\n\
42 Usage: make ["VARIABLE=value"]... [TARGET]\n\
46 help: generic-help local-help
48 all update everything\n\
49 clean remove all genated stuff in $(outdir)\n\
51 default same as the empty target\n\
52 exe update all executables\n\
54 install install programs and data (prefix=$(prefix))\n\
55 lib update all libraries\n\
56 TAGS genarate tagfiles\n\
58 Make may be invoked from any subdirectory\n\
59 Note that all commands recurse into SUBDIRS;\n\
60 prepend \`local-' to do only cwd, eg: local-clean\n\
65 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
66 mkdir -p $(distdir)/$(localdir)
67 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
69 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
70 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
73 case "$(OUT_DIST_FILES)x" in x) ;; *) \
74 mkdir -p $(distdir)/$(localdir)/$(outdir); \
75 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
77 # $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
78 # absolute for installed stepmake
79 $(foreach i, $(SUBDIRS), $(MAKE) topdir=$(topdir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
86 -if [ "$(TAGS_FILES)" != "" ]; then \
87 etags $(ETAGS_FLAGS) $(TAGS_FILES) || \
88 ctags $(CTAGS_FLAGS) ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
94 $(outdir)/VERSION: $(depth)/VERSION
97 $(outdir)/version.hh: $(outdir)/VERSION
98 $(PYTHON) $(step-bindir)/make-version.py $< > $@
100 $(outdir)/config.h: $(config_h)
103 configure: configure.in aclocal.m4
104 NOCONFIGURE=yes $(srcdir)/autogen.sh
111 local-maintainerclean:
114 $(MAKE) INSTALL="$(INSTALL) -s" install
118 install: local-install
120 $(MAKE) final-install
124 uninstall: local-uninstall
130 -$(INSTALL) -d $(prefix)/doc/$(package)
131 $(foreach i, $(EXTRA_DOC_FILES),\
132 cp -r $(i) $(prefix)/doc/$(package) &&) true
134 include $(outdir)/dummy.dep $(DEP_FILES) # expect a warning here
138 touch $(outdir)/dummy.dep
147 $(depth)/$(configuration).make: $(depth)/configure
148 @echo "************************************************************"
149 @echo "configure changed! You should probably reconfigure manually."
150 @echo "************************************************************"
151 (cd $(depth); ./config.status)
152 touch $@ # do something for multiple simultaneous configs.
156 $(MAKE) -C $(depth)/debian
157 cd $(depth) && debuild
160 $(PYTHON) $(step-bindir)/package-diff.py --outdir=$(topdir)/$(outdir) --package=$(topdir) $(makeflags)
161 -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
164 $(PYTHON) $(step-bindir)/release.py --outdir=$(topdir)/$(outdir) --package=$(topdir)
166 rpm: $(depth)/$(package-icon) dist
167 @echo "Assuming Red Hat system" #FIXME: check distro, then issue rpm
168 $(MAKE) -C $(depth)/make
169 cd $(depth) && rpm -bb make/$(outdir)/lilypond.redhat.spec
170 # su -c 'rpm -tb $(depth)/$(outdir)/$(distname).tar.gz'