<p dir="ltr">Do you have a tab character as the first character in the executable line?  This is the classic makefile mistake.<br>
</p>
<div class="gmail_quote">On Jul 28, 2013 9:03 PM, &quot;Joshua Kramer&quot; &lt;<a href="mailto:joskra42.list@gmail.com">joskra42.list@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Hello Colug,<br><br>Does anyone know how to test for a file&#39;s presence and set a Make variable accordingly?<br><br></div>I have an apache module that needs one of two structure elements, depending on whether it&#39;s 2.2 or 2.4.  I have the following function in my makefile:<br>

<br># Test for presence of /etc/redhat-release:<br>which-version:  $(DEFS)<br>        export DEFS=-DDEF_REMOTE_IP=client_ip;<br>        if test -f /etc/redhat-release; then \<br>         echo RedhatRelease is present. ; \<br>

         export DEFS=-DDEF_REMOTE_IP=remote_ip; \<br>        fi;<br>        echo DEFS is &quot;$(DEFS)&quot;<br><br></div>$(DEFS) is never getting set.  What am I doing wrong?<br><br>Thanks!<br></div>-JK<br></div>
<br>_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
<br></blockquote></div>