delorie.com/archives/browse.cgi | search |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: make |
Date: | Thu, 27 Jan 2000 21:50:45 +0200 |
Organization: | NetVision Israel |
Lines: | 15 |
Message-ID: | <3890A195.E2E39FD4@is.elta.co.il> |
References: | <38907B45 DOT AA9727DD AT gw DOT rmtaero DOT bfg DOT com> |
NNTP-Posting-Host: | ras2-p37.rvt.netvision.net.il |
Mime-Version: | 1.0 |
X-Trace: | news.netvision.net.il 949002650 24237 62.0.172.161 (27 Jan 2000 19:50:50 GMT) |
X-Complaints-To: | abuse AT netvision DOT net DOT il |
NNTP-Posting-Date: | 27 Jan 2000 19:50:50 GMT |
X-Mailer: | Mozilla 4.7 [en] (Win98; I) |
X-Accept-Language: | en,ru,hebrew |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Default wrote: > > I am using make to compile embedded code for an HC16, so I am not using > DJGPP. I am wondering if there is a way to check if a file exists from > within make. If you really need that, you could use the function $(wildcard) and see if it returns an empty list. > I want to delete the listing and absolute listing file > each time I recreate the object file. I suppose that I could just do it > manually everytime or just automatically delete them within the target. Why cannot you delete it unconditionally? If it doesn't exist, deleting it won't do any harm, right?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |