*.midi
*.patch
*.pats
+*.pats
*.pdf
*.png
*.ps
*.tex
*.twy
*.txt
+*/out/*
*[0-9]pk
*configure
*~
.gdbinit
-.gdbinit
.htaccess
.lineno
GNUmakefile
+aclocal.m4
autom4te.cache
config-*.h
+config-*.hh
config-*.make
+config-*.status
+config.hh
+config.make
+config.status
custom.py
dummy.dep
nohup.out
-*/out/*
out
out-*
out-www
+pats
socket-output
2006-02-04 Jan Nieuwenhuizen <janneke@gnu.org>
+ * Remove trailing whitespace from makefiles.
+
+ * flower/include/std-vector.hh: Add binary_search_bounds workaround
+ for earlier gcc.
+
* .cvsignore: Add out*, out-www, config-*. Remove lots of cruft.
* flower/include/std-vector.hh[!HAVE_STL_DATA_METHOD]: Workaround.
README_TOP_FILES= DEDICATION THANKS ChangeLog
EXTRA_DIST_FILES= texinfo.css
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
default: local-doc
STEPMAKE_TEMPLATES=tex documentation
LOCALSTEPMAKE_TEMPLATES=lilypond ly
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
dvi: $(DVI_FILES) $(OUT_BIB_FILES)
TEXTS = $(wildcard ANNOUNCE-*[0-9]) $(wildcard CHANGES-*[0-9]) $(wildcard ChangeLog*[0-9]) $(wildcard NEWS-*[0-9])
EXTRA_DIST_FILES = $(TEXTS)
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
default: local-doc
-#urg default local-WWW target uses footify before its time;
+#urg default local-WWW target uses footify before its time;
# must add footify with txt-to-html target
OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS)))
##local-WWW: $(OUT_TXT_FILES) $(OUT_HTMLFILES) txt-to-html
$(outdir)/%-48.png: %.xpm
convert -sample 48 -depth 24 $< $@
-
+
$(outdir)/%-32.png: %.xpm
convert -depth 24 -sample 32 $< $@
LOCALSTEPMAKE_TEMPLATES=lilypond ly
HTML_FILES=$(TEXI_FILES:%.texi=$(outdir)/%.html) $(TELY_FILES:%.tely=$(outdir)/%.html)
PDF_FILES=$(outdir)/NEWS.pdf
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
ifneq ($(out),www)
LILYPOND='true'
TEXINPUTS=$(top-src-dir)/tex::
export TEXINPUTS
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
dvi: $(DVI_FILES)
local-install-WWW: local-install-info
local-uninstall-WWW: local-uninstall-info
-default:
+default:
local-help: extra-local-help
mkdir -p $(dir $@)
$(MAKEINFO) -I$(outdir) --output=$(outdir)/lilypond --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
find $(outdir)/lilypond/ -name '*'.png -o -name '*'.ly | xargs rm -f
-# symbolic links to save space
+# symbolic links to save space
(cd $(outdir)/lilypond/ ; ln -sf ../*.png ../*.ly . )
#
mkdir -p $(dir $@)
$(MAKEINFO) --output=$(outdir)/music-glossary --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
find $(outdir)/music-glossary/ -name '*'.png -o -name '*'.ly | xargs rm -f
-# symbolic links to save space
+# symbolic links to save space
(cd $(outdir)/music-glossary/ ; ln -sf ../*.png ../*.ly . )
-$(outdir)/lilypond.xml: $(outdir)/lilypond.texi
+$(outdir)/lilypond.xml: $(outdir)/lilypond.texi
mkdir -p $(dir $@)
$(MAKEINFO) -I$(outdir) --output=$@ --docbook $<
ln -f $< $@
local-clean:
- rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
+ rm -f fonts.aux fonts.log feta*.tfm feta*.*pk
rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals $(outdir)/music-glossary
# lilypond.texi deps
$(top-build-dir)/mf/$(outconfbase)/feta16list.ly:
$(MAKE) -C $(top-src-dir)/mf
-$(outdir)/lilypond.texi: $(ITELY_FILES) $(ITEXI_FILES)
+$(outdir)/lilypond.texi: $(ITELY_FILES) $(ITEXI_FILES)
$(outdir)/lilypond.nexi: $(ITELY_FILES) $(ITEXI_FILES)
# Prevent building music-glossary.texi from default target
# bootstrap stepmake:
#
STEPMAKE_TEMPLATES=toplevel po install
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
doc:
$(MAKE) -C Documentation
STEPMAKE_TEMPLATES=script install po
EXTRA_DIST_FILES=pfx2ttf.fontforge
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
# Should we install these? This should be handled by sysadmin or
# packager but if she forgets...
cat $< | sed $(sed-atvariables) > $@
chmod 755 $@
-default: $(OUT_POSTINSTALLS) $(OUTIN_FILES)
+default: $(OUT_POSTINSTALLS) $(OUTIN_FILES)
INSTALLATION_OUT_SUFFIXES=1
STEPMAKE_TEMPLATES=elisp install install-out
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
LILYPOND_WORDS = $(outdir)/lilypond-words.el
LILYPOND_WORDS_DEPENDS =\
$(top-src-dir)/scm/markup.scm \
$(top-src-dir)/ly/engraver-init.ly
-$(LILYPOND_WORDS):
+$(LILYPOND_WORDS):
cd $(top-src-dir) && $(PYTHON) buildscripts/lilypond-words.py --el --dir=$(top-build-dir)/elisp/$(outconfbase)
all: $(LILYPOND_WORDS)
NAME = flower
MODULE_NAME = flower
-SUBDIRS = include
+SUBDIRS = include
-SCRIPTS =
+SCRIPTS =
README_FILES = NEWS-1.0 NEWS-1.1.46 README TODO
EXTRA_DIST_FILES= VERSION $(README_FILES) $(SCRIPTS)
STEPMAKE_TEMPLATES=library c++ po test
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
return &(*this)[0];
}
};
+
+ /* FIXME: it appears that choosing this function is broken when stl
+ has no data () member too... */
+ template<typename T>
+ void
+ binary_search_bounds (vector<T*> const &table,
+ T const *key, int (*compare) (T *const &, T *const &),
+ unsigned *lo,
+ unsigned *hi)
+ {
+ int cmp;
+ int result;
+
+ /* binary search */
+ do
+ {
+ cmp = (*lo + *hi) / 2;
+
+ result = (*compare) ((T *) key, table[cmp]);
+
+ if (result < 0)
+ *hi = cmp;
+ else
+ *lo = cmp;
+ }
+ while (*hi - *lo > 1);
+ }
}
+
#endif /* !HAVE_STL_DATA_METHOD */
namespace std {
}
#if 0
+ /* FIXME: what if COMPARE is named: int operator == (T const&, T const&),
+ wouldn't that work for most uses of BINARY_SEARCH?
+ */
template<typename T>
vsize
- // binary_search (std::vector<T> const &v,
binary_search (vector<T> const &v,
T const &key, int (*compare) (T const &, T const &),
vsize b=0, vsize e=VPOS)
{
- //(void) compare;
if (e == VPOS)
e = v.size ();
typename vector<T>::const_iterator i = find (v.begin () + b,
- v.begin () + e, key);
+ v.begin () + e,
+ key);
if (i != v.end ())
return i - v.begin ();
return VPOS;
depth = ..
-SUBDIRS = test regression tutorial no-notation mutopia
+SUBDIRS = test regression tutorial no-notation mutopia
examples = typography-demo les-nereides wilhelmus proportional bach-schenker
LOCALSTEPMAKE_TEMPLATES=ly mutopia
EXTRA_DIST_FILES=paddy.abc
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
EXTRA_DIST_FILES += claop.py
SUBDIRS = J.S.Bach F.Schubert E.Satie W.A.Mozart R.Schumann
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
EXTRA_DIST_FILES=README
LOCALSTEPMAKE_TEMPLATES=ly mutopia
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
STEPMAKE_TEMPLATES=documentation texinfo tex
LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
TITLE=LilyPond Regression Tests
local-clean: local-delete
## Hmm, would this work? No -- if we really want examples, move
## to other dir (input/) comes to mind.
## examples = font20 ancient-font
-## LOCALSTEPMAKE_TEMPLATES += ly mutopia
+## LOCALSTEPMAKE_TEMPLATES += ly mutopia
EXTRA_DIST_FILES= README
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
TITLE=LilyPond Tips and Tricks
EXTRA_DIST_FILES= lbook-texi-test.texi lbook-latex-test.tex
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
SUBDIRS = include
MODULE_LIBS=$(depth)/flower
-MODULE_INCLUDES= $(depth)/flower/include
+MODULE_INCLUDES= $(depth)/flower/include
# need this to convert between function pointers and member function pointers.
MODULE_CXXFLAGS= -Wno-pmf-conversions
# list parser.hh first: making parser.hh removes parser.cc
OUT_DIST_FILES=$(addprefix $(outdir)/,parser.hh parser.cc)
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
ifeq ($(HAVE_LIBKPATHSEA_SO),no)
MODULE_LDFLAGS += $(KPATHSEA_LIBS)
$(MAKE) -C $(top-build-dir)/Documentation/pictures
$(outdir)/lilypond.ico: $(top-build-dir)/Documentation/pictures/$(outbase)/lilypond.ico
- cp $< $@
+ cp $< $@
$(top-build-dir)/Documentation/pictures/$(outbase)/ly.ico:
$(MAKE) -C $(top-build-dir)/Documentation/pictures
$(outdir)/ly.ico: $(top-build-dir)/Documentation/pictures/$(outbase)/ly.ico
- cp $< $@
+ cp $< $@
endif
ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'
return hi;
binary_search_bounds (newline_locations_,
- (char const*)pos_str0,
+ (char const*&)pos_str0,
default_compare,
&lo, &hi);
INSTALLATION_FILES=$(INI_FILES)
STEPMAKE_TEMPLATES=install
-LOCALSTEPMAKE_TEMPLATES=ly
+LOCALSTEPMAKE_TEMPLATES=ly
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
STEPMAKE_TEMPLATES=makedir install
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
default: spec
# title package specific variables
# file make/Variables.make
#
-# do not change this file for site-wide extensions; please use
-# make/$(outdir)/Site.make;
+# do not change this file for site-wide extensions; please use
+# make/$(outdir)/Site.make;
#
-# Any change in files in this directory (make/) would be distributed, if
-# you do make dist
+# Any change in files in this directory (make/) would be distributed, if
+# you do make dist
#
buildscript-dir = $(src-depth)/buildscripts
include-flower = $(src-depth)/flower/include
-LILYPOND_INCLUDES = $(include-flower) $(depth)/flower/$(outdir)
+LILYPOND_INCLUDES = $(include-flower) $(depth)/flower/$(outdir)
# should use to create .spec ?
#empty
-## TODO: fail dist or web if no \version present.
+## TODO: fail dist or web if no \version present.
check-version:
- grep -L version $(LY_FILES)
+ grep -L version $(LY_FILES)
$(call GENERATE_OMF,pdf)
$(outdir)/%.ps.gz.omf: %.tely
- $(call GENERATE_OMF,ps.gz)
+ $(call GENERATE_OMF,ps.gz)
$(outdir)/%.html.omf: $(outdir)/%.texi
$(call GENERATE_OMF,html)
$(call GENERATE_OMF,pdf)
$(outdir)/%.ps.gz.omf: $(outdir)/%.texi
- $(call GENERATE_OMF,ps.gz)
+ $(call GENERATE_OMF,ps.gz)
ln -f $< $@
$(outdir)/%.ly: %.abc
- $(PYTHON) $(ABC2LY) --strict -o $@ $<
+ $(PYTHON) $(ABC2LY) --strict -o $@ $<
-# hmm. notdir builds src-dir builds?
+# hmm. notdir builds src-dir builds?
$(outdir)/%.png $(outdir)/%.pdf $(outdir)/%.ly $(outdir)/%.ps: $(outdir)/%.ly
cd $(outdir); $(LILYPOND_BINARY) --pdf --png -danti-alias-factor=2 -ddelete-intermediate-files -dno-point-and-click -I $(shell pwd)/ $(notdir $<)
touch $(outdir)/$(basename $(notdir $<)).png
$(outdir)/%.ly: %.ly
- cp $< $@
+ cp $< $@
scons:
@echo "warning: $(SCONS_USER) detected, rerouting to scons"
cd $(depth) && scons $(here) $(MAKECMDGOALS)
- false
+ false
endif
endif
outdir=$(outroot)/$(outbase)
-# why not generic ??
+# why not generic ??
config_h=$(top-build-dir)/config$(CONFIGSUFFIX).hh
# The outdir that was configured for: best guess to find binaries
# for stepmake package
# stepdir = $(depth)/stepmake
-STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES)
+STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES)
LOCALSTEPMAKE_TEMPLATES:= generic $(LOCALSTEPMAKE_TEMPLATES)
# Don't try to outsmart us, you puny computer!
include $(addprefix $(stepdir)/,$(addsuffix -vars.make, $(STEPMAKE_TEMPLATES)))
-# ugh. need to do this because of PATH :=$(top-src-dir)/..:$(PATH)
-include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES)))
+# ugh. need to do this because of PATH :=$(top-src-dir)/..:$(PATH)
+include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES)))
-include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES)))
-include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES)))
-include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES)))
-include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES)))
+include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES)))
+include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES)))
+include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES)))
+include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES)))
# Toplevel_version.make
-ifeq ($(configure-srcdir), .)
+ifeq ($(configure-srcdir), .)
include $(depth)/VERSION
else
include $(configure-srcdir)/VERSION
STEPMAKE_TEMPLATES=metafont install install-out
LOCALSTEPMAKE_TEMPLATES=lilypond
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
AF_FILES = $(call src-wildcard,*.af)
$(outdir)/$(PFA_PREFIX)emmentaler-26.otf $(outdir)/$(PFA_PREFIX)emmentaler-26.pfa: $(outdir)/feta26.pfa $(outdir)/feta-alphabet26.pfa $(outdir)/parmesan26.pfa
-$(outdir)/%.otf-table: $(outdir)/%.lisp $(if $(findstring brace,$<),,$(subst feta,parmesan,$<))
+$(outdir)/%.otf-table: $(outdir)/%.lisp $(if $(findstring brace,$<),,$(subst feta,parmesan,$<))
cat $< \
$(if $(findstring brace,$<),,$(subst feta,parmesan,$<)) \
$(if $(findstring brace,$<),,$(subst feta,feta-alphabet,$<)) > $@
$(outdir)/aybabtu.otf $(outdir)/$(PFA_PREFIX)aybabtu.pfa $(outdir)/aybabtu.svg: $(BRACES:%=$(outdir)/feta-braces-%.pfa)
$(outdir)/aybabtu.fontname:
- echo -n 'aybabtu' > $@
-$(outdir)/aybabtu.subfonts:
+ echo -n 'aybabtu' > $@
+$(outdir)/aybabtu.subfonts:
echo $(subst .mf,,$(call src-wildcard,feta-braces-[a-z].mf)) > $@
$(PE_SCRIPTS): $(buildscript-dir)/gen-emmentaler-scripts.py
ALL_FONTS = $(FETA_FONTS) $(SAUTER_FONTS)
PFA_FILES = $(ALL_FONTS:%=$(outdir)/%.pfa) $(PFA_OTF_FILES)
-# Make tfm files first, log files last,
+# Make tfm files first, log files last,
# so that normally log files aren't made twice
-ALL_GEN_FILES= $(TFM_FILES) $(TEXTABLES) $(TFM_FILES) $(LOG_FILES) $(ENC_FILES) $(LISP_FILES) $(FETA_LIST_FILES) $(OTF_TABLES) $(NCSB_TTFS) $(PFA_FILES) $(OTF_FILES) $(SVG_FILES) $(outdir)/fonts.cache-1
+ALL_GEN_FILES= $(TFM_FILES) $(TEXTABLES) $(TFM_FILES) $(LOG_FILES) $(ENC_FILES) $(LISP_FILES) $(FETA_LIST_FILES) $(OTF_TABLES) $(NCSB_TTFS) $(PFA_FILES) $(OTF_FILES) $(SVG_FILES) $(outdir)/fonts.cache-1
#PRE_INSTALL=$(MAKE) "$(ALL_GEN_FILES)"
INSTALLATION_DIR=$(local_lilypond_datadir)/fonts/source
INSTALLATION_FILES=$(MF_FILES) $(AF_FILES)
-INSTALLATION_OUT_SUFFIXES=1 2 3 4 5 6
+INSTALLATION_OUT_SUFFIXES=1 2 3 4 5 6
INSTALLATION_OUT_DIR1=$(local_lilypond_datadir)/tex
INSTALLATION_OUT_FILES1=$(TEXTABLES)
wget --passive-ftp -P $(outdir) http://lilypond.org/download/binaries/Fedora-4/$(redhat-package)
get-rpm-fonts: $(outdir)/$(redhat-package)
- cd $(outdir) ; rm -rf usr/ # (root alert!)
+ cd $(outdir) ; rm -rf usr/ # (root alert!)
cd $(outdir) ; rpm2cpio $(redhat-package) | cpio -uid '*.pfa' '*.svg'
cp `find $(outdir)/usr/ -name '*.pfa' -o -name '*.svg'` $(outdir)/
-# change this dependency
+# change this dependency
get-fonts: get-rpm-fonts
get-pfa: get-rpm-fonts
local-clean:
- rm -f mfplain.mem mfplain.log
+ rm -f mfplain.mem mfplain.log
rm -f *.tfm *.log
$(outdir)/%.enc.in: %.enc
# title makefile for po
-# file po/Makefile
+# file po/Makefile
depth = ..
PO_FILES = $(call src-wildcard,*.po)
MO_FILES = $(addprefix $(outdir)/, $(PO_FILES:.po=.mo))
HELP_CATALOGS = $(PO_FILES:%.po=%)
-CATALOGS = $(HELP_CATALOGS:lilypond=)
+CATALOGS = $(HELP_CATALOGS:lilypond=)
EXTRA_DIST_FILES = TODO $(PO_FILES) $(POT_FILES)
STEPMAKE_TEMPLATES=podir
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
default: $(MO_FILES)
PS_FILES = $(call src-wildcard,*.ps)
STEPMAKE_TEMPLATES=install
-EXTRA_DIST_FILES = $(PS_FILES)
+EXTRA_DIST_FILES = $(PS_FILES)
INSTALLATION_DIR=$(local_lilypond_datadir)/ps/
INSTALLATION_FILES=$(PS_FILES)
XGETTEXT_FLAGS = --language=Lisp
STEPMAKE_TEMPLATES=install scm po
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
LOCALSTEPMAKE_TEMPLATES = lilypond
HELP2MAN_EXECS = $(SEXECUTABLES)
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
include $(stepdir)/executable-targets.make
# descent order into subdirectories:
#
-SUBDIRS = bin stepmake
+SUBDIRS = bin stepmake
# list of distribution files:
#
SCRIPTS = aclocal.m4 autogen.sh
README_FILES = CHANGES README TODO
-README_TXT_FILES =
-EXTRA_DIST_FILES = $(README_FILES) $(SCRIPTS)
+README_TXT_FILES =
+EXTRA_DIST_FILES = $(README_FILES) $(SCRIPTS)
NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
#
# bootstrap stepmake:
#
STEPMAKE_TEMPLATES= texinfo
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
# don't install stepmake
install: local-install
EXTRA_DIST_FILES = install-sh config.sub config.guess
STEPMAKE_TEMPLATES=script install
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
POST_INSTALL=chmod 755 $(datadir)/bin/*
INSTALLATION_DIR=$(datadir)/bin
# bootstrap stepmake:
#
--include $(depth)/make/stepmake.make
+-include $(depth)/make/stepmake.make
ifeq ($(PACKAGE),STEPMAKE)
INSTALLATION_DIR=$(datadir)/stepmake
-mv -f $(outdir)/$(*F).cc.h $@ # bison < 1.30
-mv $(*F).tab.hh $@
rm -f $(*F).tab.c $(*F).tab.cc # bison < 1.30
- rm -f $(outdir)/$(*F).cc # avoid recompiling the .cc file
+ rm -f $(outdir)/$(*F).cc # avoid recompiling the .cc file
$(outdir)/%.cc: %.ll
- $(FLEX) -Cfe -p -p -o$@ $<
+ $(FLEX) -Cfe -p -p -o$@ $<
$(outdir)/%-rc.o: $(outdir)/%.rc
$(WINDRES) $(WINDRES_FLAGS) -o$@ $<
SOURCE_FILES+= $(CC_FILES) $(YY_FILES) $(INL_FILES) $(TCC_FILES) $(HH_FILES) $(LL_FILES)
-ALL_CC_SOURCES += $(HH_FILES) $(INL_FILES) $(CC_FILES) $(YY_FILES) $(LL_FILES)
+ALL_CC_SOURCES += $(HH_FILES) $(INL_FILES) $(CC_FILES) $(YY_FILES) $(LL_FILES)
O_FILES+=$(addprefix $(outdir)/, $(CC_FILES:.cc=.o) $(LL_FILES:.ll=.o) $(YY_FILES:.yy=.o))
$(outdir)/%.h: %.y
$(BISON) -d $<
mv $(*F).tab.h $@
- rm -f $(*F).tab.c # if this happens in the wrong order it triggers recompile of the .cc file
+ rm -f $(*F).tab.c # if this happens in the wrong order it triggers recompile of the .cc file
$(outdir)/%.c: %.l
$(FLEX) -Cfe -p -p -o$@ $<
# could be faster:
-# $(FLEX) -8 -Cf -o$@ $<
+# $(FLEX) -8 -Cf -o$@ $<
$(outdir)/%.rc.o: $(outdir)/%.rc
$(WINDRES) $(WINDRES_FLAGS) -o$@ $<
# do we need this?
default:
-local-WWW: $(OUTHTML_FILES)
+local-WWW: $(OUTHTML_FILES)
-define MODULE_LIB_template \
-$(1)/$(outdir)/library.a : \
+define MODULE_LIB_template
+$(1)/$(outdir)/library.a :
$(MAKE) -C $(1)
endef
ifneq ($(strip $(depth)),.)
dist:
- make -C $(depth) dist
+ $(MAKE) -C $(depth) dist
endif
-distclean: clean
+distclean: clean
$(LOOP)
$(MAKE) local-distclean
-maintainerclean:
+maintainerclean:
$(LOOP)
$(MAKE) local-maintainerclean
$(MAKE) local-distclean
installextradoc:
-$(INSTALLPY) -d $(DESTDIR)$(prefix)/doc/$(package)
- cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
+ cp -r $(EXTRA_DOC_FILES) $(prefix)/doc/$(package)
include $(outdir)/dummy.dep $(wildcard $(outdir)/*.dep) # expect a warning here
$(PYTHON) $(step-bindir)/package-diff.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir) $(makeflags)
-ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
-release:
+release:
$(PYTHON) $(step-bindir)/release.py --outdir=$(top-src-dir)/$(outdir) --package=$(top-src-dir)
WWW-post: local-WWW-post
$(LOOP)
-web:
+web:
$(MAKE) out=www WWW
$(MAKE) out=www WWW-post
DOCDIR=$(depth)/$(outdir)
#?
-STRIPDEBUG=true
+STRIPDEBUG=true
STRIP=strip --strip-debug
DO_STRIP=true
LOOP=$(foreach i, $(SUBDIRS), $(MAKE) PACKAGE=$(PACKAGE) package=$(package) -C $(i) $@ &&) true
ETAGS_FLAGS =
-CTAGS_FLAGS =
+CTAGS_FLAGS =
makeflags=$(patsubst %==, %, $(patsubst ---%,,$(patsubst ----%,,$(MAKEFLAGS:%=--%))))
HELP2MAN_GROFFS = $(addsuffix .1, $(addprefix $(outdir)/, $(HELP2MAN_EXECS)))
# triggers recompilations. Ugh.
-OUT_DIST_FILES += # $(wildcard $(outdir)/*.1)
+OUT_DIST_FILES += # $(wildcard $(outdir)/*.1)
endif
($(INSTALLPY) -d $(DESTDIR)$(INSTALLATION_OUT_DIR$(suff))/ || true) && \
$(INSTALLPY) -c -m 644 $(INSTALLATION_OUT_FILES$(suff)) $(DESTDIR)$(INSTALLATION_OUT_DIR$(suff))/ && ) true
-local-uninstall: local-uninstall-outfiles local-uninstall-files
+local-uninstall: local-uninstall-outfiles local-uninstall-files
local-uninstall-files:
$(INSTALLPY) -m 644 $(addprefix $(src-dir)/,$(INSTALLATION_FILES)) $(DESTDIR)$(INSTALLATION_DIR)/
$(foreach suff, $(INSTALLATION_SUFFIXES), \
($(INSTALLPY) -d $(DESTDIR)$(INSTALLATION_DIR$(suff)) || true) && \
- $(INSTALLPY) -m 644 $(addprefix $(src-dir)/, $(INSTALLATION_FILES$(suff))) $(DESTDIR)$(INSTALLATION_DIR$(suff))/ )
+ $(INSTALLPY) -m 644 $(addprefix $(src-dir)/, $(INSTALLATION_FILES$(suff))) $(DESTDIR)$(INSTALLATION_DIR$(suff))/ )
$(POST_INSTALL)
-local-uninstall: local-uninstall-outfiles local-uninstall-files
+local-uninstall: local-uninstall-outfiles local-uninstall-files
local-uninstall-outfiles:
EXTRA_DIST_FILES += $(MAKE_FILES)
-# these two outdir FILES are distributed, since they make sense to have
+# these two outdir FILES are distributed, since they make sense to have
# without running configure and make.
at-dir = $(doc-dir)/
MFINPUTS=$(src-dir) $(METAFONT) "\mode:=$(MFMODE); nonstopmode; input $<;"
# Let's keep this log output, it saves another mf run.
mv $(basename $(@F)).log $(basename $(@F)).tfm $(outdir)
- rm $(basename $(@F)).*gf
+ rm $(basename $(@F)).*gf
$(outdir)/%.$(XPM_RESOLUTION)gf: %.mf
MFINPUTS=$(src-dir) $(METAFONT) "\\mode=$(XPM_MODE); \\input $<"
# Don't remove $(outdir)/.log's. Logs are a target!
-$(outdir)/%.0: %.mf $(outdir)/mfplain.mem
+$(outdir)/%.0: %.mf $(outdir)/mfplain.mem
-$(METAPOST) "&$(outdir)/mfplain \mode=lowres; \mag=1.0; nonstopmode; input $<"
$(outdir)/mfplain.mem: $(MFPLAIN_MP)
-pfa: $(PFA_FILES)
+pfa: $(PFA_FILES)
#empty
#
-OMF_FILES +=
+OMF_FILES +=
do_pod2html=$($(POD2HTML_VERSION))
-$(outdir)/%.html: $(outdir)/%.pod
- $(do_pod2html)
+$(outdir)/%.html: $(outdir)/%.pod
+ $(do_pod2html)
$(outdir)/%.pod: %.pod
cp $< $@
else
ifneq ($(CYGWIN_BUILD),)
SHARED_LIB_PREFIX = cyg
- SHARED_LIB_SUFFIX =
+ SHARED_LIB_SUFFIX =
SHARED_LIB_VERSION = $(subst .,-,$(VERSION))
SHARED_LIB_VERSION_SUFFIX = .dll
# ALL_LDFLAGS += -Wl,--image-base=0x10000000 -Wl,--out-implib,lib$(NAME).a
endif
ifneq ($(MINGW_BUILD),)
SHARED_LIB_PREFIX = lib
- SHARED_LIB_SUFFIX =
+ SHARED_LIB_SUFFIX =
SHARED_LIB_VERSION = $(subst .,-,$(VERSION))
SHARED_LIB_VERSION_SUFFIX = .dll
## ALL_LDFLAGS += -Wl,--image-base=0x10000000 -Wl,--out-implib,lib$(NAME).a
-# config_make dep isn't working. Why?
+# config_make dep isn't working. Why?
$(outdir)/%: %.in $(config_make) $(depth)/VERSION
rm -f $@
cat $< | sed $(sed-atfiles) $(sed-atvariables) > $@
# without -dSAFER
-# gs 8.15 complains of safety of loading a ttf directly
+# gs 8.15 complains of safety of loading a ttf directly
$(call GENERATE_OMF,pdf)
$(outdir)/%.ps.gz.omf: %.texi
- $(call GENERATE_OMF,ps.gz)
+ $(call GENERATE_OMF,ps.gz)
# Generic rule not possible?
-$(outdir)/%/%.html: $(outdir)/%.texi
+$(outdir)/%/%.html: $(outdir)/%.texi
$(MAKEINFO) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
-default: local-doc
+default: local-doc
copy-to-top: $(TO_TOP_FILES)
$(foreach i, $(TO_TOP_FILES), \
include $(stepdir)/www-targets.make
-local-dist: configure
+local-dist: configure
-local-distclean:
+local-distclean:
rm -f config.hh config.make Makefile GNUmakefile \
config.cache config.status config.log index.html \
stepmake/stepmake/stepmake stepmake/stepmake/bin
rm -rf $(distdir)
$(MAKE) local-dist $(distdir)
chmod -R a+r $(distdir)
- chmod a+x `find $(distdir) -type d -print`
+ chmod a+x `find $(distdir) -type d -print`
(cd ./$(depth)/$(outdir); $(TAR) -cf - --owner=0 --group=0 $(DIST_NAME) | gzip -9 > $(DIST_NAME).tar.gz)
# ugh.
# Can't compare "stage1" dist with "stage2" dist in this way?
# override Generic_vars.make:
-DIST_FILES := $(EXTRA_DIST_FILES)
+DIST_FILES := $(EXTRA_DIST_FILES)
# urg?
include $(stepdir)/documentation-vars.make
STEPMAKE_TEMPLATES=install-out
# vimdir defined in config.make
-include $(depth)/make/stepmake.make
+include $(depth)/make/stepmake.make
local-install:
for a in compiler ftdetect ftplugin indent syntax; do \
-rmdir -p $(DESTDIR)$(vimdir)/$$a ; \
done
-$(LILYPOND_WORDS):
+$(LILYPOND_WORDS):
cd $(top-src-dir) && $(PYTHON) buildscripts/lilypond-words.py --words --vim --dir=$(top-build-dir)/vim/$(outconfbase)
all: $(LILYPOND_WORDS)