In designflow.blif2vst, add the ".spi" file to the target list (for cleanup).

This commit is contained in:
Jean-Paul Chaput 2023-09-30 21:55:49 +02:00
parent c4f65be096
commit a07fa9a1ec
1 changed files with 2 additions and 1 deletions

View File

@ -36,10 +36,11 @@ class Blif2Vst ( FlowTask ):
def __init__ ( self, rule, targets, depends, flags ):
super().__init__( rule, targets, depends )
self.flags = flags
self.flags = flags
if not self.targets[0].suffix == '.vst':
raise TargetNotVst( 'Blif2Vst.__init__(): First target *must* "{}" be a vst file.' \
.format( self.targets[0] ))
self.targets.append( Path(self.file_depend(0).stem + '.spi') )
self.addClean( self.targets )
def __repr__ ( self ):