"No rule to make ..."

Gisle Vanem <[email protected]>
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
Hello list.

Sometimes I'm annoyed by a little helpful error messages like:

   gnumake: *** No rule to make target 'objects/Config.obj',
   needed by 'bin/kddocwidgets.dll'.  Stop.

This was before I discovered the default compile rule had
changed from:
   $(OBJ_DIR)/%.obj: %.cpp | $(OBJ_DIR)/config.h
	$(CC) -c $(CFLAGS) -Fo$@ $<

to:
   $(OBJ_DIR)/%.obj: %.cpp | $(OBJ_DIR)/win-config.h
	$(CC) -c $(CFLAGS) -Fo$@ $<

--------

Since there was no rule to create '$(OBJ_DIR)/config.h',
but '$(OBJ_DIR)/win-config.h', I'd wish the error-message
could be:

   gnumake: *** No rule to make target 'objects/Config.obj',
   needed by 'bin/kddocwidgets-x64.dll' since there's no rule
   to create '$(OBJ_DIR)/config.h'.
   Stop.

Is there an option for this? If not, would that be wanted or
possible?


-- 
--gv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.