makefile Q about targets $@


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers makefile Q about targets $@
# 1  
Old 09-18-2007
MySQL makefile Q about targets $@

Hi All

I need to parse the target
something like:

ifeq '$@' 'first'
echo 1 $@
endif
ifeq '$@' 'second'
echo 2 $@
endif

The thing is to be able compare the target string to any string and then do the commands
Thanks a lot
ziv
zivsegal
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Question in creating targets in makefile

Hi, I have a question related to makefile. I'm new to makefile and I'm in the process of writing a makefile for my RBT build. I have multiple source files and when I compile them I will get multiple object files (one object file for each source file). I'm having problem in creating a target for... (1 Reply)
Discussion started by: Anand Venkatesa
1 Replies

2. 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

3. UNIX for Advanced & Expert Users

makefile head-scratcher: multiple targets in one go

Hi! I've got a build process where scripts create multiple targets from their sources. But here I'm running into a conceptual problem of GNU make: If one has multiple targets in a dependency, make applies the rules once for every target that is out of sync - which is correct for normal... (3 Replies)
Discussion started by: treczoks
3 Replies

4. 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

5. Solaris

Testing targets of link files > ln -s

Hi all Ive been given the task to write a script that tests that certain link files work, i.e. the physical directory the link points too, is actually there. Now, before I go down the route of ls -l | awk ...... or using test or find, is there a far more simpler command that I can use ? ... (2 Replies)
Discussion started by: sbk1972
2 Replies

6. UNIX for Dummies Questions & Answers

Shell Command for Symbolic Link Targets

**DUP post in Shell Programming and Scripting *** Hello, I'm still learning the ins and outs of how to combine multiple Unix commands together (specifically AIX), but I'm looking to do the following (only on local files): 1. Find all symbolic links that are not set up using absolute... (3 Replies)
Discussion started by: bdizenhouse
3 Replies
Login or Register to Ask a Question
sb2-config(1)							sb2-config man page						     sb2-config(1)

NAME
sb2-config - scratchbox2 configuration tool SYNOPSIS
sb2-config [OPTION]... [COMMAND [PARAMS]] DESCRIPTION
sb2-config is used to set and display configuration of existing targets. OPTIONS
-d default_target This option sets the default sb2 target. The name of the target will be written to your $HOME/.scratchbox2/config file. -l lists all available targets in your system. The names listed can be used as a parameter to the -d option. -h Display short help. -v Show version of this tool. -t target select target to be used with commands (below) COMMANDS
showtarget show default target. showlog show configuration log showenv show target-specific environment variables setenv VARIABLE VALUE set target-specific environment variable. The value becomes effective when sb2 is executed. clearenv VARIABLE set clearing for target-specific environment variable unsetenv VARIABLE remove target-specific environment variable EXAMPLES
$ sb2-config -d diablo41_armel This command sets your default target to be diablo41_armel. $ sb2-config -l This example lists all installed targets in your host. The names listed can be used as a parameter to the -d option. SEE ALSO
sb2(1), sb2-init(1), sb2-show(1) AUTHOR
Lauri Leukkunen 2.2 17 December 2010 sb2-config(1)