bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rm


From: Ted Stern
Subject: Re: rm
Date: Wed, 13 Oct 2004 12:31:54 -0700
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

On 13 Oct 2004 at 04:15 PDT, Kukuk Barbara wrote:
> Hi
> rm -f *.o doesn't work within my makefile. What is wrong?
>
> rm has the version 4.1. Make has the version 3.79.1
>
> Thanks for your help.
>
> Barbara Kukuk

Could you provide more specifics please?  What operating system are you
running on?  What shell is Make using?

In the absence of any detail, I would suggest replacing your remove-file
command 'rm' with a Make variable $(RM).  I also recommend using the Korn
shell if you have it available, but standard /bin/sh would be reasonable
also.

   SHELL = /bin/ksh
   RM    = /bin/rm

   <some target specification>: <some prerequisite>
         $(RM) -f *.o

Make sure you have a leading tab before the $(RM) command.

Ted
-- 
 Ted Stern                                 Applications Group
 Cray Inc.                               office: 206-701-2182
 411 First Avenue South, Suite 600         cell: 206-383-1049
 Seattle, WA 98104-2860                     FAX: 206-701-2500

 Frango ut patefaciam -- I break that I may reveal
 (The Paleontological Society motto, equally apropos for debugging)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]