From d228c2628b259b2dcde4d688b8961c144427f6a5 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 11 Feb 2021 11:55:22 -0300 Subject: [PATCH] Now compress targets doesn't depend on PHONY targets This avoids redoing the archive if all dependencies are already generated. --- kibot/out_compress.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kibot/out_compress.py b/kibot/out_compress.py index 089abcb4..d577d6d0 100644 --- a/kibot/out_compress.py +++ b/kibot/out_compress.py @@ -108,14 +108,10 @@ class CompressOptions(BaseOptions): ext += '.'+sub_ext return ext - def get_files(self, output, parent, no_out_expand=False): + def get_files(self, output, parent): output_real = os.path.realpath(output) files = OrderedDict() for f in self.files: - if f.from_output and no_out_expand: - # Just the name of the output - files[f.from_output] = 1 - continue # Get the list of candidates files_list = None if f.from_output: @@ -159,7 +155,7 @@ class CompressOptions(BaseOptions): def get_dependencies(self, parent): output = self.get_targets(parent, GS.out_dir)[0] - files = self.get_files(output, parent, no_out_expand=True) + files = self.get_files(output, parent) return files.keys() def run(self, output_dir, parent):