help-make
[Top][All Lists]
Advanced

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

Re: make switch option


From: Paul D. Smith
Subject: Re: make switch option
Date: Tue, 12 Oct 2004 21:32:25 -0400

%% "Anh-Khanh Tran" <address@hidden> writes:

  at> I have tried to search everywhere for the switch options but could not
  at> find them. I appreciate if you could point me to where I could find the
  at> switch option especially -a and -h. 
 
  at> This is an example from the Make script:
  at> @if [ ! -f rundir.ant/$*/ant.sum -a ! -d rundir.ant/$*/ant.sum  -a ! -h
  at> rundir.ant/$*/ant.sum ]; then exit 1 ; fi

The commands that make invokes are not make scripts, that's why you
won't find them documented in the make manual.

Make invokes a shell for each command, and passes the text of the
command script to the shell for parsing.


So, the -a, -h, etc. are options to the shell or in particular, in this
case, to the "test" program (aka "[").

-a means "and", and -h (in most versions) is true if the file is a
symbolic link.

See your shell man page and/or the man page for "test" for more details.

-- 
-------------------------------------------------------------------------------
 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]