From owner-freebsd-questions@FreeBSD.ORG Thu May 27 18:57:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A511916A4CF for ; Thu, 27 May 2004 18:57:00 -0700 (PDT) Received: from terpsi.otenet.gr (terpsi.otenet.gr [195.170.0.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1FA043D1D for ; Thu, 27 May 2004 18:56:58 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b162.otenet.gr [212.205.244.170]) by terpsi.otenet.gr (8.12.10/8.12.10) with ESMTP id i4S1t9pf019242; Fri, 28 May 2004 04:55:37 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i4S1t1wZ001079; Fri, 28 May 2004 04:55:01 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i4RIKcbP023466; Thu, 27 May 2004 21:20:38 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 27 May 2004 21:20:38 +0300 From: Giorgos Keramidas To: "N. Raghavendra" Message-ID: <20040527182038.GC2755@gothmog.gr> References: <16563.20591.846129.789297@riemann.mri.ernet.in> <20040525144451.GA49822@happy-idiot-talk.infracaninophile.co.uk> <16564.15653.674179.246862@riemann.mri.ernet.in> <20040526114157.GE26430@happy-idiot-talk.infracaninophile.co.uk> <16564.36048.491667.555279@riemann.mri.ernet.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16564.36048.491667.555279@riemann.mri.ernet.in> cc: freebsd-questions@freebsd.org Subject: Re: `call' function in `make' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2004 01:57:00 -0000 On 2004-05-26 17:55, "N. Raghavendra" wrote: > At 2004-05-26T12:41:57+01:00, Matthew Seaman wrote: > > On Wed, May 26, 2004 at 12:15:57PM +0530, N. Raghavendra wrote: > > You have got a line: > > > > .PHONY: dir1 dir2 > > > > to force those rules to be applied even if dir1 or dir2 are newer than > > their sources? > > Yes, I had tried that too, but it doesn't make the second rule work. > The second rule does work with `gmake'. Seems to work here. giorgos@gothmog[21:18]/tmp/lala$ cat Makefile DIRS= alpha beta .PHONY: $(DIRS) all: $(DIRS) clean: rmdir $(DIRS) alpha beta: mkdir $@ giorgos@gothmog[21:18]/tmp/lala$ make mkdir alpha mkdir beta giorgos@gothmog[21:18]/tmp/lala$ ls -l total 6 -rw-rw-r-- 1 giorgos wheel - 94 May 27 21:18 Makefile drwxrwxr-x 2 giorgos wheel - 512 May 27 21:18 alpha drwxrwxr-x 2 giorgos wheel - 512 May 27 21:18 beta Can you post the entire Makefile? - Giorgos