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
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.