INNER CODE UNIT · Python

generate_makefile

racenis/tram-sdk · devtools/maketool.py:214

def generate_makefile():
	if is_library:
		makefile = "default: library\n\n"
	else:
		makefile = "default: project\n\n"
	
	if not os.path.isdir(project_path + "src"):
		sys.exit("Can't find the ./src/ directory!")
		
	print("Generating makefile... ", end="")
	
	units = []
	source_path = project_path + "src/"
	
	for root, _, files in os.walk(source_path):
		for name in files:
			filename = os.path.join(root, name).replace('\\', '/')
			

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…