]> git.donarmstrong.com Git - lilypond.git/commitdiff
* make/ly-rules.make: Test for files instead of touching void and
authorJan Nieuwenhuizen <janneke@gnu.org>
Tue, 23 Sep 2003 17:10:42 +0000 (17:10 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 23 Sep 2003 17:10:42 +0000 (17:10 +0000)
ignoring errors.

* GNUmakefile.in:
* make/lilypond.redhat.spec.in:
* debian/rules: Fix lilypond.words stuff a bit.  For running from
<builddir>, adding

ChangeLog
GNUmakefile.in
debian/rules
make/lilypond.mandrake.spec.in
make/lilypond.redhat.spec.in
make/ly-rules.make

index 4b3bc3dce05caef33c33da215fe35478e1daf6a0..e05ec6ba54bfb00034e2d7def05cc537911bf3b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 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.
 
index 2ed8bf582646b07a49b3313105bc77ca3c45cbaf..8a13e2051c73da4733b4643ebf447d4be7123702 100644 (file)
@@ -33,9 +33,12 @@ include $(depth)/make/stepmake.make
 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
@@ -94,6 +97,7 @@ $(builddir)/share/lilypond-force:
        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 && \
@@ -115,6 +119,9 @@ $(builddir)/share/lilypond-force:
                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 && \
index 972a801590425c5d4a50200d11c8b127c4a1bb40..768d33c3d500ef4ee4a4c19f028e6b753629e8ee 100644 (file)
@@ -123,7 +123,7 @@ binary-arch: build install
        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 
index d300cd5d4239f74c9ee2f488485d1e69a0fb3ded..2ee1f4bf6357ee35ad1d2c99838bd94aaaef297b 100644 (file)
@@ -73,8 +73,6 @@ unset out
 %make MAKE_PFA_FILES=1 all
 make -C mf/ pfa
 
-make lilypond.words
-
 # make info
 make -C Documentation
 
index 7f14e4c389e2706f7f171e5aef67b29ef745833f..5204df4007d7285f9ba54a5f392c566b483ae5ee 100644 (file)
@@ -50,8 +50,6 @@ Documentation and example files of LilyPond. An index is available at
 make MAKE_PFA_FILES=1 all
 make -C mf/ pfa
 
-make lilypond.words
-
 # make info
 make -C Documentation
 
index f270389fbb0f161a314cafa306322fa25ac53cc2..261a5b735557d91e8fc5926034e1b57dab6e9be9 100644 (file)
@@ -1,23 +1,21 @@
-# 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) $<
@@ -29,7 +27,7 @@ $(outdir)/%.texi: $(outdir)/%.tely
 # 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 $@