🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #160

Problem with basename in make 3.62

#160
From: Patrick Gros
Date: Mon, 20 Jul 1992 14:55
33 lines
1597 bytes
Problem with the function basename of make 3.62

I have the following problem: did I misunderstand the doc or is it a real bug?
Any suggestion appreciated.

Version number of make:
GNU Make version 3.62, by Richard Stallman and Roland McGrath.
Copyright (C) 1988-1991 Free Software Foundation, Inc.

Makefile used (contains 1 line):
l.m : % : $(basename %).c

Result obtained in a directory containing only the Makefile file:
make: *** No way to make target `l.m.c'.  Stop.

Result expected:
make: *** No way to make target `l.c'.  Stop.

Comments:
why is the basename function not executed?
If the Makefile is: 
l.m : % : $(addsuffix i,%).c
the result is:
make: *** No way to make target `l.mi.c'.  Stop.
That shows that it is possible to use a function in a static pattern rule.
Why does not it work with basename?

Patrick GROS
-- 
-------------------------------------------------------------------------
Patrick GROS, Irimag-Lifia, 46 Avenue Felix Viallet 38031 Grenoble FRANCE
Tel: (33) 76 57 46 63, Fax: (33) 76 57 46 02, e-mail : gros@lifia.imag.fr
-------------------------------------------------------------------------
Technical Details
Message-ID: <1992Jul20.145501.17855@imag.fr>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cosmos.imag.fr!gros

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cosmos.imag.fr!gros
From: gros@cosmos.imag.fr (Patrick Gros)
Subject: Problem with basename in make 3.62
Message-ID: <1992Jul20.145501.17855@imag.fr>
Followup-To: gnu.utils.bug
Sender: gnulists@ai.mit.edu
Organization: Institut Imag, Grenoble, France
Distribution: gnu
Date: Mon, 20 Jul 1992 14:55:01 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 34