[asterisk-users] Method for scripting options specified in make menuconfig
James FitzGibbon
james.fitzgibbon at gmail.com
Thu Aug 9 10:10:39 CDT 2007
On 8/9/07, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
>
> > After you run make menuselect, you'll have a file 'menuselect.makeopts'
> in
> > your asterisk source dir. Copy that to /etc/asterisk.makeopts (or
> > ~/.asterisk.makeopts) and it will be used for future builds. Once
> you've
> > copied the file over, do a 'make distclean ; ./configure ; make' to
> check
> > that it worked.
>
> Hmmm.... why "distclean" ?
>
'clean' doesn't remove the generated menuselect.makeopts:
clean: $(SUBDIRS_CLEAN)
rm -f defaults.h
rm -f include/asterisk/build.h
rm -f include/asterisk/version.h
@$(MAKE) -C menuselect clean
cp -f .cleancount .lastclean
distclean: clean
@$(MAKE) -C menuselect dist-clean
@$(MAKE) -C sounds dist-clean
rm -f menuselect.makeopts makeopts menuselect-tree
menuselect.makedeps
rm -f makeopts.embed_rules
rm -f config.log config.status
rm -rf autom4te.cache
rm -f include/asterisk/autoconfig.h
rm -f include/asterisk/buildopts.h
rm -rf doc/api
rm -f build_tools/menuselect-deps
So if you go through this cycle:
untar
./configure
make menuselect
...make module choices...
cp menuselect.makeopts /etc/asterisk.makeopts
make clean
./configure
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. But since the files should be identical,
you won't be absolutely sure that your file in /etc is the one driving the
module choices.
If you changed "cp menuselect.makeopts..." to "mv menuselect.makeopts..." in
the above snippet, then I suppose 'make clean' would suffice. But 'make
distclean' doesn't do any harm - it should return the directory to it's
post-untar state, right?
--
j.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070809/b43d19de/attachment.htm
More information about the asterisk-users
mailing list