help-make
[Top][All Lists]
Advanced

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

Re: generate dependency files problem


From: John Graham-Cumming
Subject: Re: generate dependency files problem
Date: Mon, 25 Jun 2007 13:24:06 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bram Kuijper wrote:
> dependencies = $(subst .cpp,.d, $(sources))
> 
> ifneq "$(MAKECMDGOALS)" "clean"
>         include $(dependencies)
> endif
> 
 > %.d: %.cpp
>         $(CPP) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -M $< | \
>         $(SED) 's,\($(notdir $*)\.o\) *:,$(dir $@)\1 $@: ,' > address@hidden
>         $(MV) address@hidden $@
> 
> What can be the problem? Since a simple g++ -M on any of my source files
> will _give_ a lot of output, I can't find any clue why make won't
> produce dependency files.
> 
> The complete source of my makefile is in pastebin:
> http://pastebin.com/935870

1. Nicely written Makefile!  I like it.
2. Are you sure the .d files are not created?
3. Why do you do the $(MV) address@hidden $@ and not write directly to 
address@hidden
4. Can you reply with the actual value of $(dependencies) from one of
your real runs that doesn't work?  (And do the same for $(sources))

John.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGf6XVLphrp73n/hARArYDAJ4/GyYkZa1Y80xT5+E6KaRZRZLgGgCfROkW
9CsSXRoAgr8OPcAAy/lufuY=
=WbF/
-----END PGP SIGNATURE-----




reply via email to

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