<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How do I add an intermediate build step in the GCC Makefile?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27541/how-do-i-add-an-intermediate-build-step-in-the-gcc-makefile</link><description>I am starting a nRF52832 project that is based on the GCC + Makefile build system that is provided with the example projects. In my particular case, I need to execute a python script before the build to create a header file containing version information</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Nov 2017 15:35:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27541/how-do-i-add-an-intermediate-build-step-in-the-gcc-makefile" /><item><title>RE: How do I add an intermediate build step in the GCC Makefile?</title><link>https://devzone.nordicsemi.com/thread/108751?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 15:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557fe0e8-c940-4b94-9cec-a4373ae42a17</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you considered invoking the make command from the python scripts, or write a wrapper script around the makefile that calls the pre/post python scripts? You could also create pre/post build targets in the makefile, but we do not have any specific recommmendations on how to do this. If you have many makefiles that will use the same setup, you could add the targets in the common makefile, or add it in the local if it is specific to that project. &lt;a href="https://stackoverflow.com/a/1622186"&gt;This stackoverflow page&lt;/a&gt; might help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>