Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <20000127175330.4654.qmail@web123.yahoomail.com> Date: Thu, 27 Jan 2000 09:53:30 -0800 (PST) From: Earnie Boyd Reply-To: earnie_boyd AT yahoo DOT com Subject: RE: B20.1: make dependencies broken To: Kevin Wright , Cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hmm... Is you Makefile example correct? I redid it like this: ------------------------------ NTTOOLSDIR = /tmp NTTOOLS = f1.bat \ f2.bat All: $(NTTOOLS) $(NTTOOLS): % : $(NTTOOLSDIR)/% # making $@ due to $? cp $? $@ -------------------------------- I then did mkdir /tmp/maketest cd /tmp/maketest create above Makefile touch /tmp/f1.bat /tmp/f2.bat make This gave me the expected results. touch /tmp/f2.bat make This gave me the expected results. touch /tmp/f1.bat make This gave me the expected results. make Everything current, great, that was the expected result. cd .. make -f maketest/Makefile Everything current, great, that was the expected result. Earnie. --- Kevin Wright wrote: > I tried adding > .SUFFIXES: .bat > and it didn't make any difference. > > Kevin. > > > > > Ok. You problen with .bat is that it is an suffix that isn't a > > default one. > > What happens if you add .SUFFIXES .bat? > > > > Earnie. > > > > > > > I've found the following problem with make on B20.1. > > > > > Try the following makefile: > > > > > ------------------------------ > > > > > NTTOOLSDIR = /tmp > > > > > > > > > > NTTOOLS = $(NTTOOLSDIR)/f1.bat \ > > > > > $(NTTOOLSDIR)/f2.bat > > > > > > > > > > All: $(NTTOOLS) > > > > > > > > > > $(NTTOOLS): $(NTTOOLSDIR)/%: % > > > > > > > > > > $(NTTOOLS): > > > > > # making $@ due to $? > > > > > cp $? $@ > > > > > -------------------------------- > > > > > > > > > > now touch f1.bat f2.bat > > > > > > > > > > > > > > > make always reports: > > > > > make: Nothing to be done for `All'. > > > > > > > > > > Removing the .bat extension on f1/f2 fixes the problem. > > > > > Removing the second file from NTTOOLS fixes the problem. > > > > > > > > > > This all worked fine on B17. > > > > > > > > > > I'm using NT4 SP5 > > > > > > > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com