automake
[Top][All Lists]
Advanced

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

Re: automake1.4/1.6.1 more precise


From: Alexandre Duret-Lutz
Subject: Re: automake1.4/1.6.1 more precise
Date: Tue, 23 Apr 2002 16:47:23 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

>>> "Joerg" == Joerg Anders <address@hidden> writes:

[...]

 Joerg> make -f admin/Makefile.common

 Joerg> If you now:

 Joerg> ./configure --prefix=<path_to_kde3> --with-qt-dir=<path_to_qt3>
 Joerg> make
[...]
 Joerg> Makefile:405: .deps/main.Po: No such file or directory
 Joerg> Makefile:406: .deps/noteedit.Po: No such file or directory
 Joerg> Makefile:407: .deps/noteedit_client.Po: No such file or directory
 Joerg> Makefile:408: .deps/noteeditpref.Po: No such file or directory
 Joerg> Makefile:409: .deps/noteeditview.Po: No such file or directory

This is the same issue as 
  http://sources.redhat.com/ml/automake/2002-04/msg00057.html

Here admin/Makefile.common post-processes all Makefile.in's
(using the admin/am_edit perl script), and add a new line on top
of each:

| # KDE tags expanded automatically by am_edit - $Revision: 1.4 $ 
| # Makefile.in generated by automake 1.6.1 from Makefile.am.
| [...]

Unfortunately this fools Automake, as it recognizes its
Makefile.in's by checking whether the *first* line contains
'generated by automake'.

That's easy to fix.  For instance edit m4/depout.m4 and change

  if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then

to something like

  if (sed 15q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then

or even

  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]