[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling submakes
From: |
Rob Tulloh |
Subject: |
Re: Calling submakes |
Date: |
Wed, 10 Jul 2002 23:06:51 -0500 |
Also tried this version and it works fine here too. Check your Makefile
syntax?
3.79.2a1
Rob
Rob Tulloh wrote:
> Roko,
>
> GNU make is supposed to read the first rule that is not preceeded by a
> '.' and
> execute that as the default rule when invoked. In your case, this would
> be the 'all'
> rule so there should be no difference between 'make' and 'make all'. I
> wonder if
> your Makefile in your note is correct. I wrote one that looks like this:
>
> SUBDIRS = one two three
>
> .PHONY: $(SUBDIRS) all
>
> all: $(SUBDIRS)
>
> $(SUBDIRS):
> $(MAKE) -C $@
>
> It works for both style invocations. I am using make 3.78.1 for my test.
> Is this
> problem particular to the version of make you are running?
>
> Rob
>
> Roko Kruze wrote:
>
> > I've having a little problem with the latest version of make that
> > maybe someone has had before.
> >
> > I'm going through a directory listing and calling all the submakes
> > under them.It looks something like.
> >
> > DIRS = one \
> >
> > two \
> >
> > three \
> >
> > four
> >
> > .PHONY: $(DIRS) all
> >
> > all:$(DIRS)
> >
> > Now if I call just 'make' it only goes into one and skips everything
> > else.However, if I call 'make all' it goes into all of them. Anyway to
> > get around this?
> >
> > -Roko
> >
tulloh.vcf
Description: Card for Rob Tulloh