Article View: comp.unix.programmer
Article #3776Re: Dependencies in makefile
From: Erik Max Francis
Date: Wed, 09 May 2001 15:37
Date: Wed, 09 May 2001 15:37
21 lines
1471 bytes
1471 bytes
Alex Vinokur wrote:
> I am using GNU make.
>
> Can I write in makefile dependencies as following :
> xxx.o : *.h
> instead of
> xxx.o: aaa.h bbb.h
> ?
GNU make has the wildcard builtin:
xxx.o: $(wildcard *.h)
--
Erik Max Francis / max@alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ I just want to create my own life. I can just be me.
\__/ Ekene Nwokoye
REALpolitik / http://www.realpolitik.com/
Get your own customized newsfeed online in realtime ... for free!
Technical Details
Message-ID:
<3AF9643D.98B1A864@alcyone.com>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.he.net!rn.area.com!not-for-mailReferences:
<3AF90A5B.BAB9D265@bigfoot.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109f73,7c88a878fd5a1a6f X-Google-Attributes: gid109f73,public X-Google-Thread: fc89c,7c88a878fd5a1a6f X-Google-Attributes: gidfc89c,public X-Google-ArrivalTime: 2001-05-09 08:40:03 PST Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.he.net!rn.area.com!not-for-mail From: Erik Max Francis <max@alcyone.com> Newsgroups: comp.unix.programmer,gnu.utils.help Subject: Re: Dependencies in makefile Date: Wed, 09 May 2001 08:37:33 -0700 Organization: Alcyone Systems Lines: 21 Message-ID: <3AF9643D.98B1A864@alcyone.com> References: <3AF90A5B.BAB9D265@bigfoot.com> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en, eo