Re: pch.h fun

2005-05-09 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Angus Leeming wrote: >> But it would appear that this rule in config/common.am isn't doing what >> it's meant to be doing. >> >> PCH_FILE = ./pch.h.gch >> *.C *.cpp: $(PCH_FILE) > | Changing it to: > | # Make the TARGETS depend on the pch.h.gch, not the

Re: pch.h fun

2005-05-04 Thread Angus Leeming
Angus Leeming wrote: > But it would appear that this rule in config/common.am isn't doing what > it's meant to be doing. > > PCH_FILE = ./pch.h.gch > *.C *.cpp: $(PCH_FILE) Changing it to: # Make the TARGETS depend on the pch.h.gch, not the SOURCES! *.o *.lo *.obj: $(PCH_FILE) appears to do the

Re: pch.h fun

2005-05-04 Thread Angus Leeming
Angus Leeming wrote: > However, I find that explicitly passing "-o ./pch.h.gch" to the compiler > does work: Hmmm. Modifying config/common.am, so: pch-file: - $(CXXCOMPILE) -x c++-header $(PCH_SOURCE) -MT $(PCH_FILE) -MD -MP \ --MF "./$(PCH_FILE).Tdep" \ - && mv "./$(PCH_FIL

pch.h fun

2005-05-03 Thread Angus Leeming
Lars, I thought I'd try and get to the bottom of this pch.h stuff. Here's what happens now if I have separate build and source trees: $ cd lyx/devel/build/src/tex2lyx $ rm -f ~/lyx/devel/src/tex2lyx/pch.h.gch $ make make PCH_FLAGS= pch-file make[1]: Entering directory `/home/angus/lyx/devel/build