Is it not possible to pu tsome directive in the Makefile in order to make

check the presence of *.elc without corresponding *.el and deleting them BEFORE or simultaneously with recompilation process?

It should improve the compilation process.
 
Maybe it could be create a new directive such as

make clean-install

to keep make install with backward compatibility.

Unfortunately I do not master makefile issues to do this by myself.

The phrase "omitting the "make clean" has the potential to cause problems" may lead to "bogus bugs" here in the list. These king of bugs are really hard ti find.

Daniel

2009/9/5 Matt Lundin <mdl@imapmail.org>
Hi Daniel,

Daniel Martins <danielemc@gmail.com> writes:

>     On the other hand: Shouldn't a simple `make' do everything needed
>     to succeed?
>
> On "How do I keep current with Org mode development?"
>
> http://orgmode.org/worg/org-faq.php#
> keeping-current-with-Org-mode-development
>
> it is suggested the following commands
>
> git pull && make clean && make && make doc && make install
>
> I've put together with a command which updaes a bunch of svn
> repositories from my students.
>
> The problem is: make clean before make FORCES recompiling the same
> files again and not only the updated files!
>
> As org-mode is updated very often and the the compiling process is a
> bit slow and always annoying
> I decide to change the comand to
>
> git pull & && make  && make install
>
> I dropped make doc because it seems that there is som problem with
> texinfo files of these new version.
>
> The problem of omitting make clean isthat: if a file disappears its
> compiled maybe will not disappear and cause problems.
>
> Therefore I repeat Sebastien request:
>
> Shouldn't a simple `make' do everything needed to succeed?

I can't say anything definitive. All I know is that a simple "make &&
make install" usually works for me.

But, as far as I understand it, omitting the "make clean" has the
potential to cause problems, because org source files are occasionally
renamed or made obsolete. So if you run into any problems after an
install, you should run make clean.

Best,
Matt