🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3727

Makefile with a function in dependency side

#3727
From: Walter Encinas
Date: Mon, 23 Sep 2002 17:34
22 lines
1377 bytes
Hi all

	I need to build a makefile with a make rule that uses a function
result as a dependency. This function F must receive target as a
parameter, such as:

%.log	: $(call F,%)

or

%.log	: $(call F,$@)

or even

%.log	: $(call F,$$@)

	None of these tries worked. I am using GNU Make version 3.78.1. Any
suggestion?

	Thanks in advance

				Walter
Technical Details
Message-ID: <bcf444eb.0209230934.19aac7fb@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109f73,b1afc18c7dca1ca8,start
X-Google-Attributes: gid109f73,public
X-Google-Thread: fc89c,b1afc18c7dca1ca8,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 1025b4,b1afc18c7dca1ca8,start
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 2002-09-23 10:34:51 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: wsoto@uol.com.br (Walter Encinas)
Newsgroups: comp.unix.programmer,gnu.utils.help,gnu.misc.discuss
Subject: Makefile with a function in dependency side
Date: 23 Sep 2002 10:34:51 -0700
Organization: http://groups.google.com/
Lines: 22
Message-ID: <bcf444eb.0209230934.19aac7fb@posting.google.com>
NNTP-Posting-Host: 200.182.1.190
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1032802491 28634 127.0.0.1 (23 Sep 2002 17:34:51 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 23 Sep 2002 17:34:51 GMT