Sponsored Content
Full Discussion: makefile ---querry
Top Forums UNIX for Dummies Questions & Answers makefile ---querry Post 302175227 by ShawnMilo on Thursday 13th of March 2008 11:10:00 AM
Old 03-13-2008
As noted above, the backslash just lets you wrap a long command line.

You have to be sure that the backslash is the final character in that line -- even a single blank space will screw it up -- that set of commands will then be perceived as two separate lines.

The && operator is used to execute additional commands after other commands, but only if the earlier one(s) are successful. The || (double-pipe) operator is the opposite -- the following only executes if the first one fails.

Example:

Code:
thing1 && thing2 && thing3 && thing4

If thing1 works, then thing2 will execute. If thing2 works, thing3 will execute, and so on. But if any one of them fails, that's the end of the road.

Code:
thing1 || otherthing

In this case, thing1 will be executed. If it works, that's the end of the road. If it fails, then otherthing will be executed.
 

10 More Discussions You Might Find Interesting

1. HP-UX

querry on du

hi all, To summerize disk usage in human readable format we have "du -h" in linux,which gives the disk usage in MBs. do we have something similar in HP-UX ? thanks, amit (4 Replies)
Discussion started by: amit4g
4 Replies

2. Shell Programming and Scripting

parsing output from SQL querry

Hi all I have this output in a variable called ...yes $OUTPUT :-) original...huh these are tablespaces in an Oracle db how do I get this into another variable in two columns so I can do a check on the numbers (space left) SYSTEM 290; USERS 19; UNDOTBS1 1863; DATA 5982; SYSTEM 290; USERS... (7 Replies)
Discussion started by: ludvig
7 Replies

3. UNIX for Dummies Questions & Answers

gcc compiler ---querry

i am newbie my querry is if i am having a gcc compiler which has been a native build with a particular version of binutilities..then when i will use this compiler to build other packages ..then in the linking stage which linker it will use if i do not set my path. ...will it uses by default... (0 Replies)
Discussion started by: mobydick
0 Replies

4. UNIX for Dummies Questions & Answers

querry about ftp problem

hello , i want to know about a situation suppose i want to ftp to a system i try to login through root login root password ...will it fail i am getting ftp:500 command not recognized in a similar situation as soon as i am entering my email... (0 Replies)
Discussion started by: mobydick
0 Replies

5. UNIX for Dummies Questions & Answers

querry about xargs command

what is the real use of xargs command ..? ls -tr |xargs -I{} rm -f {} ....can any one tell me what is the significance of {} curly brackets in this command (1 Reply)
Discussion started by: mobydick
1 Replies

6. UNIX for Dummies Questions & Answers

Querry LDAP data

from aix server, is it a way to extract data from windows LDAP. i will need to extract only firstname, lastname and login either xml or csv format ? i can use ldifde command to extract above information, but i have to do it from windows server. (1 Reply)
Discussion started by: tjmannonline
1 Replies

7. Shell Programming and Scripting

text parsing querry

$ A=/t1/bin/f410pdb oIFS=$IFS IFS=/ $ set -- $A $ IFS=$oIFS $ echo $2 t1 $ echo $3 bin $ echo $4 f410pdb can any one please explain me what is done with IFS and how it is working internally ...i am interested to know in depth (2 Replies)
Discussion started by: mobydick
2 Replies

8. Solaris

solaris native binary ...querry

In a solaris 8 machine the native binaries are mainly kept under /bin and /usr/bin but some binaries i found in /usr/xpg4/bin please can anyone tell me in a little detail what is the reason to keep the binaries in different locations i mean /bin /usr/bin /usr/xpg4/bin ... (1 Reply)
Discussion started by: mobydick
1 Replies

9. UNIX for Advanced & Expert Users

Makefile problem - How to run module load in a Makefile

Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error: make: module: command not found Why is this? Is there any way to run this command in a Makefile? NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies

10. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies
MAKE(1) 						      General Commands Manual							   MAKE(1)

NAME
make - a program for maintaining large programs SYNOPSIS
make [-f file] [-iknpqrst] [option] ... [target] OPTIONS
-f Use file as the makefile -i Ignore status returned by commands -k On error, skip to next command -n Report, but do not execute -p Print macros and targets -q Question up-to-dateness of target -r Rule inhibit; do not use default rules -s Silent mode -t Touch files instead of making them EXAMPLES
make kernel # Make kernel up to date make -n -f mfile # Tell what needs to be done DESCRIPTION
Make is a program that is normally used for developing large programs consisting of multiple files. It keeps track of which object files depend on which source and header files. When called, it does the minimum amount of recompilation to bring the target file up to date. The file dependencies are expected in makefile or Makefile , unless another file is specified with -f. Make has some default rules built in, for example, it knows how to make .s files from .c files. Here is a sample makefile . d=/user/ast # d is a macro program: head.s tail.s# program depends on these cc -o program head.s tail.s# tells how to make program echo Program done. # announce completion head.s: $d/def.h head.c # head.s depends on these tail.s: $d/var.h tail.c # tail.s depends on these A complete description of make would require too much space here. Many books on UNIX discuss make . Study the numerous Makefiles in the MINIX source tree for examples. SEE ALSO
cc(1). MAKE(1)
All times are GMT -4. The time now is 09:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy