[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "if" statement in "$PESC_DIR\bmake\common\rules" makefile
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: "if" statement in "$PESC_DIR\bmake\common\rules" makefile
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 08:41:27 -0500
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XjQq5Wy3lIPeY7uhcyDyD0vT0bGAYMrGn8DHPaVxerT90L+9MF2xhuquzeTwhw1DtXoal+otIUjtQem/f3OALJBBCSf1/pRrJ5sYXoF9F/+0GqAI7ns1Y3hoP9otZHi8Kuw/yxwkDfs8VJ8n2Ns/8BNyhNUYuBafksMv6HK+FW4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XZ8hbRF0bl4ubzpMpO3i4pqYzSgk2tDG6l9QBLeiiuWwHs15q+qLnMM1GgMuKqLSetk9PhLGCUM5L/IfDKyGmAS6DlueDy1+VRwnMkrWi9AfeccbcRwUzTxJ4LQ/O3SgUWXH3TXUE3Lgm1ZJtOPGJW44UWniXlMAf3BUhUzw3/0=
- In-reply-to: <000001c7d368$880b7420$4598580a@persistent.co.in>
- References: <000001c7d368$880b7420$4598580a@persistent.co.in>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
-o means logical or and -d means does the directory exist. I believe all
this is covered in the bash manpage.
Matt
On 7/31/07, Sumit Vaidya <sumit_vaidya@xxxxxxxxxxxxxxxx> wrote:
>
>
>
>
> Hi,
>
>
>
> I would like to understand the rules makefile. What are these various
> options '-d', '-o', '-f' used in "if" statement.
>
> For example in "tree" target, the first command is
>
> "@if [ "$(DIRS)" != "" -o -d "ftn-auto" -o -d "ftn-custom" -o -d
> "f90-custom" ];"
>
>
>
> I would like to understand the meaning of this. What is the significance of
> –o –d option in "if" statement.
>
> Can you point me to some link where I will get the information about this?
>
>
>
> Waiting for your reply,
>
> Sumit
>
> DISCLAIMER ========== This e-mail may contain privileged and confidential
> information which is the property of Persistent Systems Pvt. Ltd. It is
> intended only for the use of the individual or entity to which it is
> addressed. If you are not the intended recipient, you are not authorized to
> read, retain, copy, print, distribute or use this message. If you have
> received this communication in error, please notify the sender and delete
> all copies of this message. Persistent Systems Pvt. Ltd. does not accept any
> liability for virus infected mails.
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener