`call' function in `make'
Giorgos Keramidas
keramida at ceid.upatras.gr
Thu May 27 18:57:00 PDT 2004
On 2004-05-26 17:55, "N. Raghavendra" <raghu at 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 at gothmog[21:18]/tmp/lala$ cat Makefile
DIRS= alpha beta
.PHONY: $(DIRS)
all: $(DIRS)
clean:
rmdir $(DIRS)
alpha beta:
mkdir $@
giorgos at gothmog[21:18]/tmp/lala$ make
mkdir alpha
mkdir beta
giorgos at 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
More information about the freebsd-questions
mailing list