Hello,
almost ten years ago there was a question in this mailing list how to force a source file to be compiled always. http://lists.gnu.org/archive/html/automake/2002-02/msg00099.html Unfortunately the solutions mentioned there seem not to work with me. My Makefile.am looks like this: --------------------------------------------------------------- lib_LTLIBRARIES = libMyLibrary.la libMyLibrary_la_SOURCES = MySourceFile.cpp \ MySourceFile.h --------------------------------------------------------------- and when I add the .PHONY-line I get this Makefile.am: --------------------------------------------------------------- lib_LTLIBRARIES = libMyLibrary.la .PHONY : MySourceFile.cpp libMyLibrary_la_SOURCES = MySourceFile.cpp \ MySourceFile.h --------------------------------------------------------------- When executing make I receive this error message: --------------------------------------------------------------- **** Build of configuration Default for project MeshingLib **** make -j install Making install in src make[1]: Entering directory `/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src' cd ../../.. && /bin/sh /home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/missing --run automake-1.9 --foreign src/Makefile cd .. && /bin/sh ./config.status src/Makefile depfiles config.status: creating src/Makefile config.status: executing depfiles commands make[1]: Leaving directory `/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src' make[1]: Entering directory `/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src' if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src -I.. -I/home/bbihler/StarTeam/Bibliotheken/C++/Medina-Bibliotheken/include -I/home/bbihler/StarTeam/Bibliotheken/C++/Xerces/include -Wall -Wno-unknown-pragmas -fopenmp -g -O0 -DTWT_CHECKS -DTR1_CONTAINERS -MT MySourceFile.lo -MD -MP -MF ".deps/MySourceFile.Tpo" -c -o MySourceFile.lo MySourceFile.cpp; \ then mv -f ".deps/MySourceFile.Tpo" ".deps/MySourceFile.Plo"; else rm -f ".deps/MySourceFile.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I../../../src -I.. -I/home/bbihler/StarTeam/Bibliotheken/C++/Medina-Bibliotheken/include -I/home/bbihler/StarTeam/Bibliotheken/C++/Xerces/include -Wall -Wno-unknown-pragmas -fopenmp -g -O0 -DTWT_CHECKS -DTR1_CONTAINERS -MT MySourceFile.lo -MD -MP -MF .deps/MySourceFile.Tpo -c MySourceFile.cpp -fPIC -DPIC -o .libs/MySourceFile.o g++: MySourceFile.cpp: Datei oder Verzeichnis nicht gefunden g++: no input files make[1]: *** [MySourceFile.lo] Fehler 1 make: *** [install-recursive] Fehler 1 make[1]: Leaving directory `/home/bbihler/StarTeam/Bibliotheken/C++/TWTMeshingLib/build/debug/src' --------------------------------------------------------------- "Datei oder Verzeichnis nicht gefunden" means "File or directory not found". Is there any easy solution? Or can someone tell me what I have done wrong? Thank you very much, Benjamin Bihler