[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using `make' to find out-of-date .el files



Sorry to beat a dying horse, but I wanted to make a correction to my
previous message.

It turns out Rich $alz's makefile template works portably, but it can't
handle files that start with an equal (=) character because make (any make)
interprets them to be null variable assignments.  The FSF's emacs 19 source
tree contains files with such names because they aren't in the distribution
(we don't just want to throw them away because they may get added or
incorporated into existing files at some future date).

So here's my mod to Rich's idea.  However, using either GNU make or
/bin/make, this didn't seem any faster than my solution, and this still
loses on a pathological case.   Oh well.

    echo '.SUFFIXES: .el .elc

    .el.elc:
            @echo $? 
    ' \
       | make -f - `{echo [~\=]*.el | sed -e 's/\.el/.elc/g'} \
       | sed -e '/is up to date/d'