help-gnu-utils
[Top][All Lists]
Advanced

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

Is There a Shorter Way to Write Make code?


From: Tiglath
Subject: Is There a Shorter Way to Write Make code?
Date: 19 Jan 2007 08:53:47 -0800
User-agent: G2/1.0

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



reply via email to

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