Is There a Shorter Way to Write Make code?

"Tiglath" <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <[email protected]>
I want to include the dependency files a.P, b.P, c.P  in the makefile,
from the a.c, b.c, c.c., this way


CSRCS = ~/srcdir/a.c ~/srcdir/b.c ~/srcdir/c.c

DEPDIR = ~/.deps

include $(patsubstr %.c, $(DEPDIR)/%.P, $(notdir $(CSRCS)))

Is there a shorter/better way to write the include statement?

Thanks
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.