help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more style: sharing variable setting include/source files with scrip


From: Paul Smith
Subject: Re: more style: sharing variable setting include/source files with scripts
Date: Fri, 03 Jan 2020 12:04:42 -0500
User-agent: Evolution 3.34.1-2

On Thu, 2019-10-31 at 11:23 -0400, Robert P. J. Day wrote:
>   obvious problem is that all of that information would be useful for
> shell scripts as well, but that format is, of course, not compatible
> with scripts. so my suggestion was, for files like that, rewrite them
> all as (with curly braces):
> 
>   DEFAULT_CONFIG_DIR=${REPO_ROOT}/tools/default
>   BOARD_CONFIG_DIR=${BOARD_DIR}/project-spec/configs
>   CONFIGS_WORK_DIR=${REPO_ROOT}/configs/${BOARD}
>   IMAGE_WORK_DIR=${REPO_ROOT}/image/${BOARD}
>   BOOTIMG_WORK_DIR=${REPO_ROOT}/bootimg/${BOARD}
>   KERNEL_WORK_DIR=${REPO_ROOT}/kernel/${BOARD}
> 
> at which point, they should be includable in Makefiles and sourceable
> from scripts, yes?
> 
>   do i understand that correctly?

Yes.  This is not an uncommon approach.  I've used it myself in the past.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]