🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #884

Make 3.62 incorrectly expands $*

#884
From: Jason Merrill
Date: Sat, 10 Oct 1992 08:41
16 lines
1035 bytes
In the finger-1.36 distribution, the makefiles in the lib subdir contain
the implicit rule

.c.o:
	$(CC) -c $(CFLAGS) $(INCFLAGS) $(DEFS) $*.c

Even though the file matched is /gnu/finger-1.36/lib/error.c, for instance,
$*.c only expands to error.c, and gcc complains that it can't find error.c
in the current directory.  Replacing $*.c with $< fixes the problem.

According to the info pages, $* should expand to "the stem with which an
implicit rule matches".  Is this not "/gnu/finger-1.36/lib/error"?

--
Jason Merrill
jason@jarthur.claremont.edu
Technical Details
Message-ID: <1992Oct10.084125.29127@muddcs.claremont.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason
From: jason@jarthur.claremont.edu (Jason Merrill)
Subject: Make 3.62 incorrectly expands $*
Message-ID: <1992Oct10.084125.29127@muddcs.claremont.edu>
Sender: gnulists@ai.mit.edu
Organization: Harvey Mudd College, Claremont, CA 91711
Distribution: gnu
Date: Sat, 10 Oct 1992 08:41:25 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 17