<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-dev/+/25737">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gen_makefile.py: proj_files: ignore config.h<br><br>Do not consider config.h inside the source tree as modified source file.<br>This file gets generated when running ./configure to build in-tree,<br>whereas osmo-dev always builds out-of-tree.<br><br>Having config.h inside proj_files causes problems with the next patch,<br>where conflicting in-tree builds will be automatically be cleaned with<br>"make distclean". For example:<br>* "make libosmocore" runs with a previously configured in-tree build<br>* proj_files contains config.h.<br>* Before attempting to build libosmocore out-of-tree, with the next<br>  patch, "make distclean" gets executed.<br>* config.h is now removed<br>* .make.libosmocore.build target expects all proj_files to exist and<br>   fails with:<br>   make: *** No rule to make target '../src/libosmocore/config.h', needed by '.make.libosmocore.build'.  Stop.<br><br>Change-Id: I10d970f2cadacb5071dcde975c76b15404038a3c<br>---<br>M gen_makefile.py<br>1 file changed, 8 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/37/25737/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/gen_makefile.py b/gen_makefile.py</span><br><span>index e6a9480..5fa3e26 100755</span><br><span>--- a/gen_makefile.py</span><br><span>+++ b/gen_makefile.py</span><br><span>@@ -173,11 +173,14 @@</span><br><span>     -and -not -name "Makefile.in" \</span><br><span>     -and -not -name "config.h.in" )</span><br><span> {proj}_files := $(shell find {src_proj} \</span><br><span style="color: hsl(0, 100%, 40%);">-    -name "*.[hc]" \</span><br><span style="color: hsl(0, 100%, 40%);">-    -or -name "*.py" \</span><br><span style="color: hsl(0, 100%, 40%);">-    -or -name "*.cpp" \</span><br><span style="color: hsl(0, 100%, 40%);">-    -or -name "*.tpl" \</span><br><span style="color: hsl(0, 100%, 40%);">-    -or -name "*.map")</span><br><span style="color: hsl(120, 100%, 40%);">+    \( \</span><br><span style="color: hsl(120, 100%, 40%);">+      -name "*.[hc]" \</span><br><span style="color: hsl(120, 100%, 40%);">+      -or -name "*.py" \</span><br><span style="color: hsl(120, 100%, 40%);">+      -or -name "*.cpp" \</span><br><span style="color: hsl(120, 100%, 40%);">+      -or -name "*.tpl" \</span><br><span style="color: hsl(120, 100%, 40%);">+      -or -name "*.map" \</span><br><span style="color: hsl(120, 100%, 40%);">+    \) \</span><br><span style="color: hsl(120, 100%, 40%);">+    -and -not -name "config.h")</span><br><span> </span><br><span> .make.{proj}.clone:</span><br><span>  @echo -e "\n\n\n===== $@\n"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-dev/+/25737">change 25737</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-dev/+/25737"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-dev </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I10d970f2cadacb5071dcde975c76b15404038a3c </div>
<div style="display:none"> Gerrit-Change-Number: 25737 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>