Link to home
Create AccountLog in
Avatar of jamie_lynn
jamie_lynn

asked on

How do you write conditions in makefile rules?

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
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer