<?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: How to write a Complex Makefile in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122997#M92983</link>
    <description>hi ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sub-GenerateBVF :./GenerateBVF/Src/$(MAKEFILE) FORCE&lt;BR /&gt;  $(ISDIRPRESENT) GenerateBVF || echo GenerateBVF doesnt exist&lt;BR /&gt;  $(MAKEFILE) -f GenerateBVF/Src/$(MAKEFILE)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;make -f makefile &lt;BR /&gt;&lt;BR /&gt;will help you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hasan</description>
    <pubDate>Wed, 02 Jan 2008 07:10:30 GMT</pubDate>
    <dc:creator>Hasan  Atasoy</dc:creator>
    <dc:date>2008-01-02T07:10:30Z</dc:date>
    <item>
      <title>How to write a Complex Makefile</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122996#M92982</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt; First of all, i wish a happy and Properous New Year 2008 to all.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Now, i am trying to write a makefile which runs multiple makefiles present in different directories. &lt;BR /&gt;&lt;BR /&gt;  Here is my example make file if i try yo run the same It gives the error message as dont know how to run &lt;BR /&gt;&lt;BR /&gt;Dont Know How to make ./GenerateBVF/Src&lt;BR /&gt;&lt;BR /&gt;   I am not understanding where i am going wrong. Can any one help me out of this,&lt;BR /&gt;   Please find the Makefile attached.&lt;BR /&gt;&lt;BR /&gt;   thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt; &lt;BR /&gt;      &lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2008 05:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122996#M92982</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2008-01-02T05:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Complex Makefile</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122997#M92983</link>
      <description>hi ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sub-GenerateBVF :./GenerateBVF/Src/$(MAKEFILE) FORCE&lt;BR /&gt;  $(ISDIRPRESENT) GenerateBVF || echo GenerateBVF doesnt exist&lt;BR /&gt;  $(MAKEFILE) -f GenerateBVF/Src/$(MAKEFILE)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;make -f makefile &lt;BR /&gt;&lt;BR /&gt;will help you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hasan</description>
      <pubDate>Wed, 02 Jan 2008 07:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122997#M92983</guid>
      <dc:creator>Hasan  Atasoy</dc:creator>
      <dc:date>2008-01-02T07:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Complex Makefile</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122998#M92984</link>
      <description>&lt;BR /&gt;Hi Hasan,&lt;BR /&gt;&lt;BR /&gt;I have changed the last line as follows &lt;BR /&gt;make -f GenerateBVF/Src/$(MAKEFILE)&lt;BR /&gt;&lt;BR /&gt;i.e. my Makefile looks as below now&lt;BR /&gt;&lt;BR /&gt;sub-GenerateBVF : GenerateBVF/Src/$(MAKEFILE)&lt;BR /&gt;  $(ISDIRPRESENT) GenerateBVF || echo GenerateBVF doesnt exist&lt;BR /&gt;  cd GenerateBVF/Src         make -f GenerateBVF/Src/$(MAKEFILE)&lt;BR /&gt;&lt;BR /&gt;   But , for this the error message is as follows &lt;BR /&gt;&lt;BR /&gt;"Dont know how to make bvfWriter.cpp"&lt;BR /&gt;&lt;BR /&gt;  Where bvfWriter.cpp  is the file  which i want to compile throught the Makefile that is present in the directory GenerateBVF/Src&lt;BR /&gt;&lt;BR /&gt;   Can some one correct me where ia m going wrong here.&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2008 08:50:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122998#M92984</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2008-01-02T08:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Complex Makefile</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122999#M92985</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;    I am able to solve this problem .&lt;BR /&gt;&lt;BR /&gt;     The solution is we have to give the make command in the same line when we execute the "cd" command as follows&lt;BR /&gt;&lt;BR /&gt;   @cd GenerateBVF/Src ; make&lt;BR /&gt;&lt;BR /&gt;   The makefile is working fine.&lt;BR /&gt;&lt;BR /&gt;   But, i am not understanding what is the meaning of '@' at the beginning of the line.&lt;BR /&gt;&lt;BR /&gt;   Befoer closing the thread i would like to know the meaning of '@' &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Can any one help me out for this..&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2008 14:08:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4122999#M92985</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2008-01-02T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Complex Makefile</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4123000#M92986</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;    I am able to solve this problem .&lt;BR /&gt;&lt;BR /&gt;     The solution is we have to give the make command in the same line when we execute the "cd" command as follows&lt;BR /&gt;&lt;BR /&gt;   @cd GenerateBVF/Src ; make&lt;BR /&gt;&lt;BR /&gt;   The makefile is working fine.&lt;BR /&gt;&lt;BR /&gt;   But, i am not understanding what is the meaning of '@' at the beginning of the line.&lt;BR /&gt;&lt;BR /&gt;   Befoer closing the thread i would like to know the meaning of '@' &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Can any one help me out for this please..&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Vikram&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2008 14:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4123000#M92986</guid>
      <dc:creator>CA1490051</dc:creator>
      <dc:date>2008-01-02T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Complex Makefile</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4123001#M92987</link>
      <description>As you found out, you need to be aware that each line in a makefile rule is executed by a separate shell.  That's why you see lines with ";" and with trailing "\".&lt;BR /&gt;&lt;BR /&gt;$(ISDIRPRESENT) GenerateBVF || echo GenerateBVF doesnt exist&lt;BR /&gt;cd GenerateBVF/Src; $(MAKEFILE)&lt;BR /&gt;&lt;BR /&gt;The code here will try to cd even if it doesn't exist.  You may want to add an exit 1 after the echo:&lt;BR /&gt;$(ISDIRPRESENT) GenerateBVF || ( echo GenerateBVF doesnt exist; exit 1 )&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Before closing the thread I would like to know the meaning of '@'.&lt;BR /&gt;&lt;BR /&gt;It means don't print the line when executing the makefile.  I would suggest you remove all leading "@" from your makefile because evil "@" makes them hard to debug.  Especially when going from one makefile to another.&lt;BR /&gt;&lt;BR /&gt;The only lines that should have "@" are echo or common code that never fails.  :-)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/make.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/make.1.html&lt;/A&gt;&lt;BR /&gt;Command lines are executed one at a time, each by its own shell. Each command line can have one or more of the following prefixes: -, @, or +.</description>
      <pubDate>Wed, 02 Jan 2008 15:35:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4123001#M92987</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-01-02T15:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Complex Makefile</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4123002#M92988</link>
      <description>You also might want to look at "Managing Projects with Make" published by O'Reilly&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.oreilly.com/catalog/make2/" target="_blank"&gt;http://www.oreilly.com/catalog/make2/&lt;/A&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-write-a-complex-makefile/m-p/4123002#M92988</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-01-02T16:28:24Z</dc:date>
    </item>
  </channel>
</rss>

