On 8/9/07, <b class="gmail_sendername">Tzafrir Cohen</b> &lt;<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; After you run make menuselect, you&#39;ll have a file&nbsp;&nbsp;&#39;menuselect.makeopts&#39; in<br>&gt; your asterisk source dir.&nbsp;&nbsp;Copy that to /etc/asterisk.makeopts (or<br>&gt; ~/.asterisk.makeopts) and it will be used for future builds.&nbsp;&nbsp;Once you&#39;ve
<br>&gt; copied the file over, do a &#39;make distclean ; ./configure ; make&#39; to check<br>&gt; that it worked.<br><br>Hmmm.... why &quot;distclean&quot; ?<br></blockquote></div><br>&#39;clean&#39; doesn&#39;t remove the generated 
menuselect.makeopts:<br><br>clean: $(SUBDIRS_CLEAN)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f defaults.h<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f include/asterisk/build.h<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f include/asterisk/version.h<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @$(MAKE) -C menuselect clean<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cp -f .cleancount .lastclean
<br><br>distclean: clean<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @$(MAKE) -C menuselect dist-clean<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @$(MAKE) -C sounds dist-clean<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f menuselect.makeopts makeopts menuselect-tree menuselect.makedeps<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f makeopts.embed_rules
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f config.log config.status<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -rf autom4te.cache<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f include/asterisk/autoconfig.h<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f include/asterisk/buildopts.h<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -rf doc/api<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f build_tools/menuselect-deps
<br><br>So if you go through this cycle:<br><br>untar<br>./configure<br>make menuselect<br>...make module choices...<br>cp menuselect.makeopts /etc/asterisk.makeopts<br>make clean<br>./configure<br><br>Then the automated run of menuselect is going to have two makeopts files that it might pull from: the generated one left over from the first run of configure, and the one in /etc.&nbsp; But since the files should be identical, you won&#39;t be absolutely sure that your file in /etc is the one driving the module choices.
<br><br>If you changed &quot;cp menuselect.makeopts...&quot; to &quot;mv menuselect.makeopts...&quot; in the above snippet, then I suppose &#39;make clean&#39; would suffice.&nbsp; But &#39;make distclean&#39; doesn&#39;t do any harm - it should return the directory to it&#39;s post-untar state, right?
<br clear="all"><br>-- <br>j.