parent
797d6accd2
commit
f556df8c13
2 changed files with 5 additions and 4 deletions
6
makefile
6
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
|
||||
|
|
|
|||
3
umake.py
3
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}:'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue