Do not clean objects for scripts

This commit is contained in:
Pierre Pronchery 2019-02-12 20:22:47 +01:00
parent e03e911ac3
commit 48e004bb22

View File

@ -2012,7 +2012,9 @@ static int _clean_targets(Makefile * makefile)
continue;
c = targets[i];
targets[i] = '\0';
if(_makefile_get_type(makefile, targets) != TT_COMMAND)
if(_makefile_get_type(makefile, targets) != TT_COMMAND
&& _makefile_get_type(makefile, targets)
!= TT_SCRIPT)
_makefile_print(makefile, "%s%s%s", " $(", targets,
"_OBJS)");
if(c == '\0')