?
Solved

How do you write conditions in makefile rules?

Posted on 2007-10-04
1
Medium Priority
?
2,873 Views
Last Modified: 2010-10-05
Hi,
I am writing a makefile rule and I want to write a conditional statement.
What is the correct syntax to do this?

Thanks
Jamie

rule_1:
       @ if [ ${one} == ${two}] ; then \
                do something  \
       fi
0
Comment
Question by:jamie_lynn
1 Comment
 
LVL 43

Accepted Solution

by:
ravenpl earned 2000 total points
ID: 20019888
ifeq ($(one), $(two})
 do something
endif
http://web.mit.edu/6.033/labdoc/make_7.html
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question