LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2006, 02:47 AM   #1
George2
Member
 
Registered: Oct 2003
Posts: 354

Rep: Reputation: 30
about -d, -s with $@ in Makefile


Hello everyone,


What are the meaning of -s, -d with $@ in Makefile? For example,

[ -d $@ ] || (other commands)

[ -s $@ ] || (other commands)


thanks in advance,
George
 
Old 04-26-2006, 04:59 AM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
These are shell commands. See man test.
 
Old 04-26-2006, 06:57 AM   #3
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Thanks ioerror,


Quote:
Originally Posted by ioerror
These are shell commands. See man test.
I got them! Previously, I thought they are make commands. :-)

What means $@? I can not find related descriptions in GNU make manual, even if it is used several times in it.


regards,
George
 
Old 04-26-2006, 07:20 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
make doesn't have commands...

Code:
target:
        do something       # anything HERE is run with what's in $SHELL, e.g. /bin/sh
eg as above

/bin/sh -d blah.blah

Last edited by bigearsbilly; 04-26-2006 at 07:22 AM.
 
Old 04-26-2006, 07:29 AM   #5
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
$@ expands to the current target.
 
Old 04-27-2006, 05:02 AM   #6
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Thanks ioerror,


Quote:
Originally Posted by ioerror
$@ expands to the current target.
It makes senses.


regards,
George
 
Old 04-27-2006, 05:04 AM   #7
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Thanks bigearsbilly,


Quote:
Originally Posted by bigearsbilly
make doesn't have commands...

Code:
target:
        do something       # anything HERE is run with what's in $SHELL, e.g. /bin/sh
eg as above

/bin/sh -d blah.blah
Do you mean the question I asked is dealing with shell commands and has nothing to do with make itself?


regards,
George
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
How to modify makefile.in or makefile.am QiangWan Linux - Newbie 1 05-17-2005 11:07 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM
Makefile jesLinux Programming 1 07-17-2003 03:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration