List Info

Thread: Some help please with makefile




Some help please with makefile
country flaguser name
United States
2008-04-25 06:03:36
I'm trying to get my makefile to work in order to convert
from a cadence database to a gds
Here are the results of my execution
game03 % make
create
/data/phy_ver10/DROP_ZONE/c014/C014.M/drc/6lm/RULE_96B5_PASS
_6LM.gds
from
create
/data/phy_ver10/DROP_ZONE/c014/C014.M/drc/7lm/RULE_96B5_PASS
_7LM.gds
from
create
/data/phy_ver10/DROP_ZONE/c014/C014.M/drc/8lm/RULE_96B5_PASS
_8LM.gds
from


I would have thought the it should have list only the ones
in the FILES variable from the rule without 6,7,8lm

 From the command line I have verified the my find is
working properly

find REGRESSION -follow -maxdepth 1 -name 'RULE_*' -exec
basename {} ; -exec grep -v 'RULE_*[678]LM' {} ;
If I uncomment the rhs the 3 rules for 6lm, 7lm and 8lm work
properly, commented they don't work
$/%.$ : #$/%$

I have removed a gds file from each of the 4 directories
The report should read
create
/data/phy_ver10/DROP_ZONE/c014/C014.M/drc/RULE_96B1_PASS.gds

from  
/data/phy_ver10/regressionData/c014/C014.M/REGRESSION/RULE_9
6B1_PASS
create 6lm
/data/phy_ver10/DROP_ZONE/c014/C014.M/drc/6lm/RULE_96B5_PASS
_6LM.gds
from   6lm
/data/phy_ver10/regressionData/c014/C014.M/REGRESSION/RULE_9
6B5_PASS_6LM
create 7lm
/data/phy_ver10/DROP_ZONE/c014/C014.M/drc/7lm/RULE_96B5_PASS
_7LM.gds
from   7lm
/data/phy_ver10/regressionData/c014/C014.M/REGRESSION/RULE_9
6B5_PASS_7LM
create 8lm
/data/phy_ver10/DROP_ZONE/c014/C014.M/drc/8lm/RULE_96B5_PASS
_8LM.gds
from   8lm
/data/phy_ver10/regressionData/c014/C014.M/REGRESSION/RULE_9
6B5_PASS_8LM

I know I still have more work to do to accomplish all the
tasks written in the comments at the beginning of the
makefile

FYI
my REGRESSION data base has all RULE_* flat
my DROP_ZONE his the data more structured
DROP_ZONE/6lm/RULE_*_6LM*
DROP_ZONE/7lm/RULE_*_7LM*
DROP_ZONE/8lm/RULE_*_7LM*
DROP_ZONE/RULE_*  >>>> NOT *_6LM* or *_7LM* or
*_8LM*

Here is my makefile in it's entirety.  ( except the pod
documentation )
__BEGIN__
############################################################
###########
##  Purpose   : 1. To control the extraction of data from
cadence
##              2. Move data to the DROP_ZONE
##              3. Run regression tests against data in
DROP_ZONE
##              4. create jpeg images from the gds
##  Author    : Billy N. Patton
##
############################################################
###########
TECHNOLOGY      := c014
PROCESS         := C014.M
DROP_ZONE       :=
/data/phy_ver10/DROP_ZONE/$/$/drc
CADENCEDB       :=
/data/phy_ver10/regressionData/$/$/REGR
ESSION
PRINTF          := printf
PERL            := /usr/local/bin/perl
CD              := cd
BSUB            := /usr/local/lsf/bin/bsub
BJOBS           := /usr/local/lsf/bin/bjobs
POD2TEXT        := /usr/local/bin/pod2text
OUTSUFFIX       := gds
CADSUFFIX       := /layout/layout.cdb
CELLTORUN       :=
GROUPTORUN      :=
RULETORUN       :=
RM              := /bin/rm -rf
MV              := /bin/mv
TIMESTAMP       := ${shell date +%G.%m.%e_%H.%M.%S}
PVKIT           := /apps/ame/bin/pvkit
FILES           := ${addprefix $/,${addsuffix
.$,${shell find $ -maxdepth 1 -follow
-name 'RULE_*' -exec basename {} ; -exec grep -v
'.*/RULE_.*_[678]LM.*' {} ;}}}
FILES_6LM       := ${addprefix $/6lm/,${addsuffix
.$,${notdir ${wildcard
$/RULE_*_6LM*}}}}
FILES_7LM       := ${addprefix $/7lm/,${addsuffix
.$,${notdir ${wildcard
$/RULE_*_7LM*}}}}
FILES_8LM       := ${addprefix $/8lm/,${addsuffix
.$,${notdir ${wildcard
$/RULE_*_8LM*}}}}

all : $ $ $ $

$/%.$ : #$/%$
   echo "create $"
   echo "from $<"

$/6lm/%.$ :
$/%$
   echo "create 6lm $"
   echo "from 6lm $<"

$/7lm/%.$ :
$/%$
   echo "create 7lm $"
   echo "from 7lm $<"

$/8lm/%.$ :
$/%$
   echo "create 8lm $"
   echo "from 8lm $<"

__END__


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )