🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #2266

Static Patterns in Makefiles

#2266
From: jimzat
Date: Mon, 21 Dec 1998 00:00
19 lines
1359 bytes
I am trying to create a makefile which will do something based upon files in
specific directories changing.

When the following is used, the dependency list is not expanded.  Is there a
way to make this work, or do I need to write explicit rules for foo.pak and
bar.pak?


PAK_DIRS = foo bar

all: $(foreach dir, $(PAK_DIRS), $(dir).pak)

$(foreach dir, $(PAK_DIRS), $(dir).pak) : %.pak : $(wildcard %/*.txt)
    echo updated>$@

JiMZ

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <75le8o$v0j$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e56f2d70afb650f,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 109f73,e56f2d70afb650f,start
X-Google-Attributes: gid109f73,public
X-Google-Thread: 1025b4,e56f2d70afb650f,start
X-Google-Attributes: gid1025b4,public
From: jimzat@iname.com
Subject: Static Patterns in Makefiles
Date: 1998/12/21
Message-ID: <75le8o$v0j$1@nnrp1.dejanews.com>
X-Deja-AN: 424456316
X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 204.48.31.191
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Mon Dec 21 12:17:29 1998 GMT
Newsgroups: gnu.misc.discuss,gnu.gcc.help,gnu.utils.help
X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I ;Nav)