am_edit and ui dependencies

John Firebaugh jfirebaugh at
Thu Aug 22 03:40:09 BST 2002

I have trouble lately compiling files which include ui-generated header files:

make[1]: Entering directory `/home/john/src/kde/kdebase/kcontrol/background'
source='backgnd.cpp' object='backgnd.lo' libtool=yes \
depfile='.deps/backgnd.Plo' tmpdepfile='.deps/backgnd.TPlo' \
depmode=gcc /bin/sh /home/john/src/kde/kdebase/admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H 
-I. -I/ho
me/john/src/kde/kdebase/kcontrol/background -I../.. -I/opt/kde-cvs-b/include 
john/src/kde/qt-copy/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  
  -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall 
-pedantic -W -W
pointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 
OURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new 
CE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE  -c -o backgnd.lo `test -f 
.cpp || echo '/home/john/src/kde/kdebase/kcontrol/background/'`backgnd.cpp
backgnd.cpp:61: bgadvanced.h: No such file or directory
backgnd.cpp:63: backgndbase.h: No such file or directory

It appears that am_edit generates the wrong dependencies. This is what gets:

backgnd.lo: backgnd.moc 
$(srcdir)/backgnd.cpp: backgndbase.h bgadvanced.h 

I think it should rather be just:

backgnd.lo: backgnd.moc backgndbase.h bgadvanced.h 

Doesn't anyone else have this problem?


More information about the kde-core-devel mailing list