LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem running ifdef in GNU make 3.80 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-running-ifdef-in-gnu-make-3-80-a-421180/)

jennifer29 03-03-2006 02:49 AM

Problem running ifdef in GNU make 3.80
 
code :
all:
ifdef MYDIR
echo "defined"
endif

error:
ifdef MYDIR
make: ifdef: Command not found
make: *** [all] Error 127

i got to knw tht ifdef is a macro and not a make command ...Then how do i check whether a variable is set in a makefile?????

Jaqui 03-03-2006 04:56 AM

check the original thread :)


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