Write only two archives per line to the Makefile

For increased readability, write only two archives per line to the
Makefile, in the format:

ARCHIVES := <url-source-1> <dest1> \
	<url-source-2> <dest2> \
	<url-source-3> <dest3> \
	...
This commit is contained in:
Matthew Johnson
2016-11-30 07:49:52 -08:00
parent a9ff5fce7d
commit 6935225125
+3 -2
View File
@@ -300,9 +300,10 @@ def download_tarball(url_argument, name_argument, archives, target_dir):
with open(build.download_path + "/Makefile", "w") as file:
file.write("PKG_NAME := " + name + "\n")
file.write("URL := " + url_argument + "\n")
file.write("ARCHIVES :=")
sep = "ARCHIVES := "
for archive in archives:
file.write(" {}".format(archive))
file.write("{}{}".format(sep, archive))
sep = " " if sep != " " else " \\\n\t"
file.write("\n")
file.write("\n")
file.write("include ../common/Makefile.common\n")