ignoring errors.
* GNUmakefile.in:
* make/lilypond.redhat.spec.in:
* debian/rules: Fix lilypond.words stuff a bit. For running from
<builddir>, adding
2003-09-23 Jan Nieuwenhuizen <janneke@gnu.org>
+ * make/ly-rules.make: Test for files instead of touching void and
+ ignoring errors.
+
+ * GNUmakefile.in:
+ * make/lilypond.redhat.spec.in:
+ * debian/rules: Fix lilypond.words stuff a bit. For running from
+ <builddir>, adding
+
+ (push "<builddir>/share/lilypond/elisp" load-path)
+
+ to your ~/.emacs.el should give you LilyPond-mode again.
+
* scripts/lilypond-book.py (re_dict): Only fix texinfo @mbinclude
regexp for DOS/Windows, we are too paranoid to fix others.
doc:
$(MAKE) -C Documentation
-lilypond.words:
+LILYPOND_WORDS = $(outdir)/lilypond.words.el $(outdir)/lilypond.words.vim
+$(LILYPOND_WORDS): $(srcdir)/lily/my-lily-lexer.cc $(buildscript-dir)/lilypond.words.py $(srcdir)/scm/new-markup.scm $(srcdir)/ly/engraver-init.ly
cd $(builddir) && $(PYTHON) $(buildscript-dir)/lilypond.words.py $(outdir)
+all: $(LILYPOND_WORDS)
+
web-install:
-$(INSTALL) -m 755 -d $(webdir)
tar -C $(webdir)/ -xzf $(outdir)/web.tar.gz
cd $(builddir) && rm -rf lib share
mkdir -p $(builddir)/lib/lilypond
mkdir -p $(builddir)/share/lilypond
+ mkdir -p $(builddir)/share/lilypond/elisp
mkdir -p $(builddir)/share/lilypond/fonts
mkdir -p $(builddir)/share/lilypond/tex
cd $(builddir)/lib/lilypond && \
ln -s ../../../mf/$(outconfbase) afm && \
ln -s ../../../mf/$(outconfbase) tfm && \
ln -s ../../../mf/$(outconfbase) type1
+ cd $(builddir)/share/lilypond/elisp && \
+ ln -sf ../../../$(outconfbase)/lilypond.words.el . && \
+ ln -s $(abs-srcdir)/*.el .
$(foreach i,$(CATALOGS), \
mkdir -p $(builddir)/share/locale/$i/LC_MESSAGES && \
cd $(builddir)/share/locale/$i/LC_MESSAGES && \
dh_testdir
dh_testroot
cp -av lilypond-mode.el lilypond-font-lock.el lilypond-indent.el \
- buildscripts/out/lilypond.words.el \
+ out/lilypond.words.el \
$(r)/usr/share/emacs/site-lisp/
dh_installdocs AUTHORS.txt NEWS.txt README.txt \
DEDICATION THANKS
%make MAKE_PFA_FILES=1 all
make -C mf/ pfa
-make lilypond.words
-
# make info
make -C Documentation
make MAKE_PFA_FILES=1 all
make -C mf/ pfa
-make lilypond.words
-
# make info
make -C Documentation
-# Mudela_rules.make
-
.SUFFIXES: .doc .dvi .mudtex .tely .texi .ly
$(outdir)/%.latex: %.doc
- -chmod a+w $@
+ if [ -f $@ ]; then chmod a+w $@; fi
$(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) $(LILYPOND_BOOK_FLAGS) --verbose --dependencies --outdir=$(outdir) $<
chmod -w $@
# don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
# it is not, for --srcdir builds
$(outdir)/%.texi: %.tely
- -chmod a+w $@
+ if [ -f $@ ]; then chmod a+w $@; fi
set|egrep '(TEX|LILY)' # ugh, what's this?
$(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
chmod -w $@
$(outdir)/%.texi: $(outdir)/%.tely
- -chmod a+w $@
+ if [ -f $@ ]; then chmod a+w $@; fi
# debugging:
# set|egrep '(TEX|LILY)'
$(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
# nexi: no-lily texi
# for plain info doco: don't run lily
$(outdir)/%.nexi: %.tely
- -chmod a+w $@
+ if [ -f $@ ]; then chmod a+w $@; fi
$(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --no-lily $(LILYPOND_BOOK_FLAGS) -o $(notdir $@) $<
chmod -w $@