Article View: gnu.misc.discuss
Article #2338problem with gnu make's static pattern rules
From: Vamsee
Date: Fri, 24 Sep 1993 06:09
Date: Fri, 24 Sep 1993 06:09
43 lines
1605 bytes
1605 bytes
Newsgroups: gnu.gcc.help,gnu.misc.discuss Hi, I am using GNU make (3.68) on a SPARCclassic running SunOS 4.1.3C. I am trying to use the feature described on page 37 of the GNU make manual. My makefile looks like this: ---------------- # SHELL = /bin/sh a.d b.d: %.d: %.c @echo $* $< $@ ----------------- When I type make I got the following output: a a.c a.d instead of the expected: a a.c a.d b b.c b.d Am I missing something here? Is this a bug or a problem with our installation? I came across this problem when I was trying to generate dependencies for a bunch of source files using : DEPS = $(SRCS:.c=.d) # described on page 37 of gnumake manual. $(DEPS): %.d: %.c $(CC) -MM $(CPPFLAGS) $(INCLUDE) $< | sed 's/$*.o/& $@/g' > $@ Suggestions or pointers on generating header dependencies and using GNU make with RCS are appreciated. Thanks Vamsee
Technical Details
Message-ID:
<27u2v6$gqc@TAMUTS.TAMU.EDU>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!TAMUTS.TAMU.EDU!abgen.tamu.edu!vamseeShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,130fd7041a66f0c1,start X-Google-Attributes: gid11318c,public X-Google-Thread: 1025b4,130fd7041a66f0c1,start X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1993-09-24 00:34:33 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!TAMUTS.TAMU.EDU!abgen.tamu.edu!vamsee From: vamsee@abgen.tamu.edu (Vamsee) Newsgroups: gnu.misc.discuss,gnu.gcc.help Subject: problem with gnu make's static pattern rules Date: 24 Sep 1993 06:09:42 GMT Organization: Texas A&M University Lines: 43 Message-ID: <27u2v6$gqc@TAMUTS.TAMU.EDU> NNTP-Posting-Host: abgen.tamu.edu