Date: Thu, 27 May 2004 21:20:38 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: "N. Raghavendra" <raghu@mri.ernet.in> Cc: freebsd-questions@freebsd.org Subject: Re: `call' function in `make' Message-ID: <20040527182038.GC2755@gothmog.gr> In-Reply-To: <16564.36048.491667.555279@riemann.mri.ernet.in> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-05-26 17:55, "N. Raghavendra" <raghu@mri.ernet.in> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040527182038.GC2755>