help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


From: Paul D. Smith
Subject: Re: (no subject)
Date: Fri, 14 Nov 2003 19:15:58 -0500

%% address@hidden writes:

  wp> POSSIBLE_DIRS = $(shell ls -1d *)

  wp> foo: $(POSSIBLE_DIRS)
  wp>   $(PRINT) "Done"

  wp> $(POSSIBLE_DIRS)
                      ^
Missing a colon (:) here

  wp>   $(PRINT) "Testing $@"
  wp>   if[ -d $@ ]; then cd $@; make; fi
         ^^                      ^^^^
Missing whitespace here.

Also you should _NEVER_ use "make" in a rule; _ALWAYS_ use $(MAKE)
instead.

  wp> When I try this it stops after the first token in POSSIBLE_DIRS.
  wp> I thought it would iterate for each token.  What did I do wrong.
  wp> I am not sure if this is a make issue of shell issue.

The makefile you show above is not a valid makefile, so we don't know
whether the error in your _real_ makefile is accurately represented
above.

Also you did not give any details such as the actual message you
received from make, what version of make you're using, what operating
system you're using, etc.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]