<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Make File Conditiona Compilation in HP UNIX in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161540#M90775</link>
    <description>&amp;gt;I am not using gmake, i am using make. Is this not possible to achieve this through make?&lt;BR /&gt;&lt;BR /&gt;That's what I said.  HP-UX's make doesn't support this.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: it's just possible that knowing which HP-UX you're using (hardware, version) might be interesting, too.)&lt;BR /&gt;&lt;BR /&gt;Not in this case with make.  :-(&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it may be possible (if not convenient) to devise more complex rules which do (a lot of) "uname -s" testing&lt;BR /&gt;&lt;BR /&gt;Right but simpler to use a real make.</description>
    <pubDate>Sat, 15 Mar 2008 19:49:27 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-03-15T19:49:27Z</dc:date>
    <item>
      <title>Make File Conditiona Compilation in HP UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161535#M90770</link>
      <description>&lt;!--!*#--&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;       I am trying to put a if condition in a Makefile.&lt;BR /&gt;        The Makefile is as follows&lt;BR /&gt;HOSTNAME = `uname`&lt;BR /&gt;HP       = HP-UX&lt;BR /&gt;&lt;BR /&gt;all:TARGET&lt;BR /&gt;ifeq ($(HOSTNAME),$(HP))&lt;BR /&gt;      echo $(HOSTNAME)&lt;BR /&gt;else&lt;BR /&gt;      echo "NOT HP"&lt;BR /&gt;endif&lt;BR /&gt; &lt;BR /&gt;      If i try to make I get the following error message &lt;BR /&gt;&lt;BR /&gt;           Make: Must be a separator on rules line 7.  Stop. &lt;BR /&gt;&lt;BR /&gt;Can Someone correct me where i am going wrong.&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Mar 2008 06:59:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161535#M90770</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2008-03-14T06:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Make File Conditiona Compilation in HP UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161536#M90771</link>
      <description>&amp;gt;Can someone correct me where i am going wrong.&lt;BR /&gt;&lt;BR /&gt;You aren't using gmake:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/make-3.81/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/make-3.81/&lt;/A&gt;</description>
      <pubDate>Fri, 14 Mar 2008 07:10:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161536#M90771</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-14T07:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Make File Conditiona Compilation in HP UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161537#M90772</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;even with gmake, the character before your 'echo's must be a TAB, no spaces, because that's part of a makerule.&lt;BR /&gt;The result of 'make' after this correction will be the output&lt;BR /&gt;Don't know how to make 'TARGET'&lt;BR /&gt;when the above lines are your complete Makefile.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Sat, 15 Mar 2008 08:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161537#M90772</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-03-15T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Make File Conditiona Compilation in HP UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161538#M90773</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;     There was an error in my copy paste&lt;BR /&gt;&lt;BR /&gt;    The Makefile looks as below&lt;BR /&gt;&lt;BR /&gt;HOSTNAME = `uname`&lt;BR /&gt;HP       = HP-UX&lt;BR /&gt;&lt;BR /&gt;all:TARGET&lt;BR /&gt;TARGET :&lt;BR /&gt;ifeq ($(HOSTNAME),$(HP))&lt;BR /&gt;        echo $(HOSTNAME)&lt;BR /&gt;        #uname&lt;BR /&gt;else&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;     and there is a tab fo rthe echo statement not spaces.&lt;BR /&gt;&lt;BR /&gt;     I am not using gmake i am using make. IS this not possible to achieve this through make.&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;    &lt;BR /&gt;</description>
      <pubDate>Sat, 15 Mar 2008 10:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161538#M90773</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2008-03-15T10:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Make File Conditiona Compilation in HP UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161539#M90774</link>
      <description>&amp;gt; I am not using gmake i am using make.&lt;BR /&gt;&lt;BR /&gt;Why not?  What were you using (where) when&lt;BR /&gt;you created this "make" file?  (For that&lt;BR /&gt;matter, it's just possible that knowing which&lt;BR /&gt;HP-UX you're using (hardware, version) might&lt;BR /&gt;be interesting, too.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; IS this not possible to achieve this&lt;BR /&gt;&amp;gt; through make.&lt;BR /&gt;&lt;BR /&gt;If "man make" doesn't mention conditionals&lt;BR /&gt;like "ifeq", then I'd assume that this "make"&lt;BR /&gt;program doesn't support them.&lt;BR /&gt;&lt;BR /&gt;Depending on exactly what you wish to do&lt;BR /&gt;conditionally, it may be possible (if not&lt;BR /&gt;convenient) to devise more complex rules&lt;BR /&gt;which do (a lot of) "uname -s" testing to&lt;BR /&gt;decide what to do differently on different&lt;BR /&gt;host systems.  If you need more complex&lt;BR /&gt;OS-dependency in the "make" file structure,&lt;BR /&gt;then you may need to use a "make" program&lt;BR /&gt;which allows it.</description>
      <pubDate>Sat, 15 Mar 2008 13:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161539#M90774</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-03-15T13:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Make File Conditiona Compilation in HP UNIX</title>
      <link>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161540#M90775</link>
      <description>&amp;gt;I am not using gmake, i am using make. Is this not possible to achieve this through make?&lt;BR /&gt;&lt;BR /&gt;That's what I said.  HP-UX's make doesn't support this.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Steven: it's just possible that knowing which HP-UX you're using (hardware, version) might be interesting, too.)&lt;BR /&gt;&lt;BR /&gt;Not in this case with make.  :-(&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it may be possible (if not convenient) to devise more complex rules which do (a lot of) "uname -s" testing&lt;BR /&gt;&lt;BR /&gt;Right but simpler to use a real make.</description>
      <pubDate>Sat, 15 Mar 2008 19:49:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/make-file-conditiona-compilation-in-hp-unix/m-p/4161540#M90775</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-15T19:49:27Z</dc:date>
    </item>
  </channel>
</rss>

