Keith Owens wrote:

> On Wed, 10 Oct 2001 16:39:16 +0200, 
> Giacomo Catenazzi <[EMAIL PROTECTED]> wrote:
> 
>>Keith Owens wrote:
>>Maybe a better solution: mrproper don't depend on .config.
>>
> 
> I convert user_command() to 'make' rules in place, so the result
> replaces user_command().  The expanded commands automatically add to
> the CLEAN list.  Some user_commands() are conditional on CONFIG_xxx so
> I need a .config to get the correct expansion of the global Makefile.
> The MRPROPER list includes the CLEAN list.  Without a .config I have
no
> CLEAN list.
> 


what I propose:

mrproper:
         if [ -f .config ]; then ${MAKE} true_mrproper
         else
             rm -f ${explicit list of file that could exists \
                before .config (cml2 and kbuild files)}
         fi

[this is untested simplified version, and it shouldn't work with
shadow tree, but do shadows tree exists without .config?]

Reading again your sentences I have another question (yet I don't
have access on Linux boxes).
If I do:
make menuconfig installable
make menuconfig
# and I change the configurations
make installable
make mrproper

Would this clean the files generated only on first
'installable' ?

> 
>>To speed-up more, you can remove default the verbose things in your
make scripts.
>>(with preprocessor instead of runtime)
>>If user use a makefile parameter VERBOSE, the makefile vould be build
verbose.
>>
> 
> The generated global Makefile has variables like KBUILD_QUIET and
> PP_MAKEFILE3_FLAGS.  I deliberately left this for make to evaluate
> instead of doing them during the generation phase.  That lets you
debug
> kbuild quickly by specifying the failing target, NO_MAKEFILE_GEN
> (bypass pre-processor) plus the debug flags to see what is occurring.


Ok. It was only a proposal. I agree with KBUILD_QUIET, but I think
nobody (else kbuild's people) need PP_MAKEFILE3_FLAGS.
Hmm, anyway the speed up is minimal, thus forget this proposal.


        giacomo

_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to