delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/02/07:33:55

Date: Sun, 2 Nov 1997 14:29:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jose Luis Perandones Colino <joepc AT writeme DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Make clen question
In-Reply-To: <3.0.32.19971030134056.0068b8f0@mail.santandersupernet.com>
Message-ID: <Pine.SUN.3.91.971102142849.11098Q-100000@is>
MIME-Version: 1.0

On Fri, 31 Oct 1997, Jose Luis Perandones Colino wrote:

> I have a problem with a makefile. It have a variable with all the
> object files and i want erase all in a clean target.
> 
> clean:
> 
> 	del $(OBJS)
> 
> But 4DOS say: line too long

Try this:

	clean:
		for %f in ($(OBJS)) do if exist %f del %f

Does this solve the problem?

Btw, I don't understand how that original line was supposed to work at
all, since DEL only accepts a single argument, at least in
COMMAND.COM.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019