help-make
[Top][All Lists]
Advanced

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

A little help with dependencies please


From: Billy N. Patton
Subject: A little help with dependencies please
Date: Fri, 12 Sep 2008 05:59:01 -0500
User-agent: Thunderbird 2.0.0.12 (X11/20080213)

Ok first off I have 3 files that are the root of all evil.
Here are the exact path names.  There are over 5800 of these files where the 
names begin with RULE_
1. /data/phy_ver10/DROP_ZONE/c021/C021.M/drc/RULE_1A_PASS.gds
2. 
/data/phy_ver10/regressionData/c021/C021.M/regressionTests/drc/c021/C021.M/6lm/hercules/RULE_1A_PASS/<time
 stamp>/phyver.RULE_1A_PASS.work/drc/RULE_1A_PASS.LAYOUT_ERRORS
3. 
/data/phy_ver10/regressionData/c021/C021.M/REGRESSION/RULE_1A_PASS/layout/layout.cdb

I have some wildcard definitions that gather all the layout.cdb rules names and 
create a list for the DROP_ZONE.
FILES           = ${addprefix ${DROP_ZONE}/,${addsuffix .${OUTSUFFIX},${shell 
find ${CADENCEDB} -maxdepth 1 -follow -name 'RULE_*' -exec basename {} \; | 
grep -v '.*_[678]LM.*'}}}
FILES_6LM       = ${addprefix ${DROP_ZONE}/6lm/,${addsuffix 
.${OUTSUFFIX},${notdir ${wildcard ${CADENCEDB}/RULE_*_6LM*}}}}
FILES_7LM       = ${addprefix ${DROP_ZONE}/7lm/,${addsuffix 
.${OUTSUFFIX},${notdir ${wildcard ${CADENCEDB}/RULE_*_7LM*}}}}
FILES_8LM       = ${addprefix ${DROP_ZONE}/8lm/,${addsuffix 
.${OUTSUFFIX},${notdir ${wildcard ${CADENCEDB}/RULE_*_8LM*}}}}


I have variable set up to shorten these names
TECHNOLOGY    := c021
PROCESS       := C021.M
METALSYS      := 6lm
TOOL          := hercules
DROP_ZONE     := /data/phy_ver10/DROP_ZONE/${TECHNOLOGY}/${PROCESS}/drc
THIS_DIR      := /data/phy_ver10/regressionData/${TECHNOLOGY}/${PROCESS}
OUTSUFFIX     := gds
CADSUFFIX     := /layout/layout.cdb
REGRESSIONDIR := ${THIS_DIR}/regressionTests
CADENCEDB     := ${THIS_DIR}/REGRESSION
TIMESTAMP     := ${shell date +%G.%m.%d_%H.%M.%S}

all : ${FILES} ${FILES_6LM} ${FILES_7LM} ${FILES_8LM}

#Here is my primary rule  The 6,7,8 are almost identical
${DROP_ZONE}/%.${OUTSUFFIX} : ${CADENCEDB}/%${CADSUFFIX}
  @echo "converting            : $*"
  @${LAYOUTCONVERT} -cell $* -outlayout $@ -workingDir ${CONVERTDIR}/$* -lis 
${CONVERTDIR}/${*}/cds2gds.list > /dev/null
  @echo "running herc on       : $*"
  @-${RUNHERC} -metalSys 6lm -DcellToRun=$* > /dev/null


This is comparing the time stamp of the cadence layout to the gds stored in the 
drop zone.
It then run the conversion and runs hercules which would result in the creations of 
the <cell>.LAYOUT_ERRORS

I would like to split these up so that the <cell>.LAYOUT_ERRORS is not part of 
the conversion

${REGRESSIONDIR}/drc/${TECHNOLOGY}/${PROCESS}/${METALSYS}/${TOOL}/%/${TIMESTAMP}/phyver.%.work/drc/%.LAYOUT_ERRORS
 : ${DROP_ZONE}/%.${OUTSUFFIX}
...                                                               ^             
        ^          ^
The problem is the % appears 3 times on the left hand side        |             
        |          |  These are the cell names RULE_1A_PASS,...
I think that is a no can do ???
And from the numbers at the beginning I need to make sure that they run as
1 : 3  to run first
2 : 1  to run after 1 : 3

So how can I make the LAYOUT_ERRORS file dependent on the gds file which is 
dependent on the layout.cdb file




reply via email to

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