-----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 $@: ,' > [EMAIL > PROTECTED] > $(MV) [EMAIL PROTECTED] $@ > > 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) [EMAIL PROTECTED] $@ and not write directly to [EMAIL PROTECTED] 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----- _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
