| Billy Patton 2004-11-16, 6:56 pm |
| Got it :)
IS_DEFAULT=$(if file = $(origin CELL_SIZE),1,0)
i had == and not =
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodology Group
Dallas, Texas, 214-480-4455, b-patton@ti.com
On Tue, 16 Nov 2004, Billy Patton wrote:
>
>
> I have :
> ifeq (file,$(origin CLEAN_LAFF))
> IS_DEF_1 := 1
> else
> IS_DEF_1 := 0
> endif
> clean_laff:
> <tab> @${MAKE} --no-print-directory -f ${MAKE_CLEAN_LAFF} \
> ...
> IS_DEFAULT=${IS_DEF_1} \
> EXEC=${CLEAN_LAFF}
>
>
> ifeq (file,$(origin CELL_SIZE))
> IS_DEF_2 := 1
> else
> IS_DEF_2 := 0
> endif
>
> cell_size:
> <tab>@${MAKE} --no-print-directory -f ${MAKE_CELL_SIZE} \
> ...
> IS_DEFAULT=${IS_DEF_2} \
> EXEC=${CELL_SIZE}
>
> and several more
> I'm looking for another idea that haveing to set a unique variable
> IS_DEF_[1-42] for each target
>
> I've tried this:
> IS_DEFAULT=$(if $(findstring file,$(origin CELL_SIZE)),1,0)
> and this
> IS_DEFAULT=$(if file == $(origin CELL_SIZE),1,0)
>
> neither get any results
> What to do?
>
> ___ _ ____ ___ __ __
> / _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
> / _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
> /____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
> /___/ Texas Instruments ASIC Circuit Design Methodology Group
> Dallas, Texas, 214-480-4455, b-patton@ti.com
>
|