delorie.com/archives/browse.cgi | search |
X-Originating-IP: | [200.45.93.41] |
From: | "Norberto Alfredo Bensa" <nbensa AT hotmail DOT com> |
To: | <djgpp AT delorie DOT com> |
References: | <39852224 DOT 7AC204DA AT yahoo DOT com> |
Subject: | Re: Makefiles |
Date: | Mon, 31 Jul 2000 08:57:20 -0300 |
Organization: | nBens@ Computers |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
Message-ID: | <OE54mdcUTkTmz3tAFxZ00001aad@hotmail.com> |
X-OriginalArrivalTime: | 31 Jul 2000 11:59:02.0424 (UTC) FILETIME=[B7E3B980:01BFFAE6] |
Reply-To: | djgpp AT delorie DOT com |
ummm, I got a problem with it. 'info make' says to use the following: %.d: %.c set -e; $(CC) -M $(CPPFLAGS) $< \ | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ [ -s $@ ] || rm -f $@ but I get an error: Generating dependencies for zone.c... Unknown command "[" No command name seen. make.exe: *** [release_DOS/zone.d] Error -1 Why? Now, if I delete '[ -s $@ ] || rm -f $@' it works, but if it fails I end up with a null file... How do I fix that? And what is '[ -s $@]' for? What does it means? Thanks, Norberto
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |