diff --git a/makefile b/makefile index db2db6a..bbecf8f 100644 --- a/makefile +++ b/makefile @@ -4,10 +4,10 @@ UMAKE_PATH="umake" .PHONY: all clean all: - @PYTHONPATH=$(UMAKE_PATH) python $(MAKE_PATH)/make.py + @PYTHONPATH=$(UMAKE_PATH) python3 $(MAKE_PATH)/make.py debug: - @PYTHONPATH=$(UMAKE_PATH) python $(MAKE_PATH)/make.py --type debug + @PYTHONPATH=$(UMAKE_PATH) python3 $(MAKE_PATH)/make.py --type debug clean: - @PYTHONPATH=$(UMAKE_PATH) python $(MAKE_PATH)/make.py --clean + @PYTHONPATH=$(UMAKE_PATH) python3 $(MAKE_PATH)/make.py --clean diff --git a/umake.py b/umake.py index ad4a253..1599a7d 100755 --- a/umake.py +++ b/umake.py @@ -103,7 +103,8 @@ def make(config: Config): if job.returncode != 0: error_paths.append((source_path, job.stdout + job.stderr)) break - dependency_dict[str(source_path)] = job.stdout.split('.o: ')[1].replace('\n', '').replace('\\ ', '').split(' ') + dependency_dict[str(source_path)] = [ + line for line in job.stdout.split('.o: ')[1].replace('\n', '').replace('\\ ', '').split(' ') if line] if error_paths: for error_path, error_text in error_paths: print(f'{ConsoleColor.RED}Error checking dependencies for {error_path}:'