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\
50 default same as the empty target\n\
51 exe update all executables\n\
53 install install programs and data (prefix=$(prefix))\n\
54 lib update all libraries\n\
55 TAGS genarate tagfiles\n\
57 Make may be invoked from any subdirectory\n\
58 Note that all commands recurse into SUBDIRS;\n\
59 prepend \`local-' to do only cwd, eg: local-clean\n\
64 local-dist: $(DIST_FILES) $(OUT_DIST_FILES) $(NON_ESSENTIAL_DIST_FILES)
65 mkdir -p $(distdir)/$(localdir)
66 $(LN) $(DIST_FILES) $(distdir)/$(localdir)
68 case "$(NON_ESSENTIAL_DIST_FILES)x" in x) ;; *) \
69 $(LN) $(NON_ESSENTIAL_DIST_FILES) $(distdir)/$(localdir);; \
72 case "$(OUT_DIST_FILES)x" in x) ;; *) \
73 mkdir -p $(distdir)/$(localdir)/$(outdir); \
74 $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
76 # $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
77 # absolute for installed stepmake
78 $(foreach i, $(SUBDIRS), $(MAKE) topdir=$(topdir) distdir=$(distdir) localdir=$(localdir)/$(notdir $(i)) -C $(i) local-dist &&) true
85 -if [ "$(TAGS_FILES)" != "" ]; then \
86 etags $(ETAGS_FLAGS) $(TAGS_FILES) || \
87 ctags $(CTAGS_FLAGS) ".h.hh.tcc.icc" $(TAGS_FILES) $(ERROR_LOG); \
93 $(outdir)/VERSION: $(depth)/VERSION
96 $(outdir)/version.hh: $(outdir)/VERSION
97 $(PYTHON) $(step-bindir)/make-version.py $< > $@
99 $(outdir)/config.h: $(config_h)
102 configure: configure.in aclocal.m4
103 NOCONFIGURE=yes $(srcdir)/autogen.sh
110 local-maintainerclean:
113 $(MAKE) INSTALL="$(INSTALL) -s" install
115 install: local-install
120 uninstall: local-uninstall
126 -$(INSTALL) -d $(prefix)/doc/$(package)
127 $(foreach i, $(EXTRA_DOC_FILES),\
128 cp -r $(i) $(prefix)/doc/$(package) &&) true
130 include $(outdir)/dummy.dep $(DEP_FILES) # expect a warning here
134 touch $(outdir)/dummy.dep
143 $(depth)/$(configuration).make: $(depth)/configure
144 @echo "************************************************************"
145 @echo "configure changed! You should probably reconfigure manually."
146 @echo "************************************************************"
147 (cd $(depth); ./config.status)
148 touch $@ # do something for multiple simultaneous configs.
152 $(MAKE) -C $(depth)/debian
153 cd $(depth) && debuild
156 $(PYTHON) $(step-bindir)/package-diff.py --outdir=$(topdir)/$(outdir) --package=$(topdir) $(makeflags)
157 -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
160 $(PYTHON) $(step-bindir)/release.py --outdir=$(topdir)/$(outdir) --package=$(topdir)
162 rpm: $(depth)/$(package-icon) dist
163 @echo "Assuming Red Hat system" #FIXME: check distro, then issue rpm
164 $(MAKE) -C $(depth)/make
165 cd $(depth) && rpm -bb make/$(outdir)/lilypond.redhat.spec
166 # su -c 'rpm -tb $(depth)/$(outdir)/$(distname).tar.gz'