Re: default.aap diff
Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday 01 October 2003 23:10, you wrote: > The "-MG" option should not be necessary. When gcc runs into a header > file that it can't find it will produce an error message. Aap > recognizes the error and will attempt to produce that header file and > retry generating dependencies. Clever eh? But perhaps it's so clever > it doesn't work? Sortof. Consider this sequence of AAP output: Aap: uic -tr i18n setup_base.ui > build-FreeBSD4_9_RC/setup_base.h Aap: echo "#include <klocale.h>" > build-FreeBSD4_9_RC/setup_base.cc Aap: uic -tr tr2i18n -impl setup_base.h setup_base.ui > build-FreeBSD4_9_RC/ setup_base.cc.temp Aap: sed -e "s,tr2i18n( \"\" ),QString::null,g" -e "s,tr2i18n( \"\"\, \"\" ),QString::null,g" -e "s,image\([0-9][0-9]*\)_data,img \1_dbSelection_base,g" build-FreeBSD4_9_RC/setup_base.cc.temp >> build-FreeBSD4_9_RC/setup_base.cc Aap: rm -rf build-FreeBSD4_9_RC/setup_base.cc.temp Aap: echo "#include \""setup_base.moc"\"" >> build-FreeBSD4_9_RC/setup_base.cc Aap: g++ -I/usr/local/kde-3.2/include -I/usr/local/qt-3.2/include -I/usr/ local/include -I. -MM build-FreeBSD4_9_RC/setup_base.cc > build-FreeBSD4_9_RC/build-FreeBSD4_9_RC/setup_base.cc.aap build-FreeBSD4_9_RC/setup_base.cc:102: setup_base.moc: No such file or directory Aap: Error in recipe "/home/adridg/aap/Exec-cvs/default.aap" line 148: :update failed for "setup_base.moc" You can see that first a .h file is created. Then a C++ file is created, which contains the line #include "setup_base.moc". It _also_ contains the line #include "setup_base.h", but that file already exists in $BDIR (because my action to create the C++ file also explicitly :does the action to create the .h file). I'm a little worried about interactions between $BDIR and filenames #included in generated files, but that's not something to deal with here. If I run aap -v, I see Aap: Start :update "setup_base.moc" Aap: Attempt :update "build-FreeBSD4_9_RC/setup_base.moc" Aap: 1 - updating target "build-FreeBSD4_9_RC/setup_base.moc" Aap: 1 - Do not know how to build "build-FreeBSD4_9_RC/setup_base.moc" Aap: :update "build-FreeBSD4_9_RC/setup_base.moc" failed wow, it's smart enough to know what to update, but somehow the update fails. There is a :rule %.moc : %.h, but apparently it's not invoked. -- pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]> If the door is ajar, can we fill it with door-jamb? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf