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