@@ -67,6 +67,11 @@ async function main() {
6767 warningOut ( `--no-children is deprecated and is default when doing partial builds.` ) ;
6868 break ;
6969
70+ case `-ip` :
71+ case `--is-partial` :
72+ cliSettings . makefileIsPartial = true ;
73+ break ;
74+
7075 case `-wp` :
7176 case `--with-parents` :
7277 cliSettings . makefileWithParents = true ;
@@ -84,7 +89,7 @@ async function main() {
8489 case `-f` :
8590 case `--files` :
8691 case `-l` :
87- cliSettings . fileList = true ;
92+ cliSettings . lookupFiles = [ ] ;
8893 break ;
8994
9095 case `-h` :
@@ -132,6 +137,10 @@ async function main() {
132137 console . log ( `` ) ;
133138 console . log ( `Options specific to '-bf make':` ) ;
134139 console . log ( `` ) ;
140+ console . log ( `\t-ip` ) ;
141+ console . log ( `\t--is-partial\tWill only generate targets that are needed for` ) ;
142+ console . log ( `\t\t\tthe objects that are being built.` ) ;
143+ console . log ( `` ) ;
135144 console . log ( `\t-wp` ) ;
136145 console . log ( `\t--with-parents\tUsed with '-bf make' and will add parents of` ) ;
137146 console . log ( `\t\t\tobjects being partially built to the makefile.` ) ;
@@ -140,7 +149,7 @@ async function main() {
140149 break ;
141150
142151 default :
143- if ( cliSettings . fileList ) {
152+ if ( cliSettings . lookupFiles !== undefined ) {
144153 cliSettings . lookupFiles . push ( parms [ i ] ) ;
145154 }
146155 break ;
@@ -237,9 +246,12 @@ async function main() {
237246
238247 await makeProj . setupSettings ( ) ;
239248
240- makeProj . setPartialWithImpacts ( cliSettings . makefileWithParents ) ;
249+ makeProj . setPartialOptions ( {
250+ partial : cliSettings . makefileIsPartial ,
251+ parents : cliSettings . makefileWithParents
252+ } )
241253
242- let specificObjects : ILEObject [ ] | undefined = cliSettings . fileList ? cliSettings . lookupFiles . map ( f => targets . getResolvedObject ( path . join ( cwd , f ) ) ) . filter ( o => o ) : undefined ;
254+ let specificObjects : ILEObject [ ] | undefined = cliSettings . lookupFiles ? cliSettings . lookupFiles . map ( f => targets . getResolvedObject ( path . join ( cwd , f ) ) ) . filter ( o => o ) : undefined ;
243255 writeFileSync ( path . join ( cwd , `makefile` ) , makeProj . getMakefile ( specificObjects ) . join ( `\n` ) ) ;
244256
245257 break ;
0 commit comments