use directory bin
instead of build
This commit is contained in:
parent
2dbb70fa2b
commit
baac2d48e8
4
.gitignore
vendored
4
.gitignore
vendored
@ -52,6 +52,6 @@ Module.symvers
|
|||||||
Mkfile.old
|
Mkfile.old
|
||||||
dkms.conf
|
dkms.conf
|
||||||
|
|
||||||
# ---> products
|
# ---> Program output
|
||||||
build/
|
bin/
|
||||||
*.wav
|
*.wav
|
||||||
|
@ -19,7 +19,7 @@ BITS_PER_BYTE = 8
|
|||||||
# Paths
|
# Paths
|
||||||
PATHS = {
|
PATHS = {
|
||||||
"src_dir": "src",
|
"src_dir": "src",
|
||||||
"build_dir": "build",
|
"bin_dir": "bin",
|
||||||
"template": "template.c",
|
"template": "template.c",
|
||||||
"substitute": "substituted.c",
|
"substitute": "substituted.c",
|
||||||
"output": "render_bytebeat",
|
"output": "render_bytebeat",
|
||||||
@ -30,8 +30,8 @@ PATHS = {
|
|||||||
|
|
||||||
# Resolve paths
|
# Resolve paths
|
||||||
PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"])
|
PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"])
|
||||||
PATHS["substitute"] = path_join(PATHS["build_dir"], PATHS["substitute"])
|
PATHS["substitute"] = path_join(PATHS["bin_dir"], PATHS["substitute"])
|
||||||
PATHS["output"] = path_join(PATHS["build_dir"], PATHS["output"])
|
PATHS["output"] = path_join(PATHS["bin_dir"], PATHS["output"])
|
||||||
PATHS["fwrite_le"] = path_join(PATHS["src_dir"], PATHS["fwrite_le"])
|
PATHS["fwrite_le"] = path_join(PATHS["src_dir"], PATHS["fwrite_le"])
|
||||||
|
|
||||||
# Add `.` directory before all paths for compilation
|
# Add `.` directory before all paths for compilation
|
||||||
@ -237,7 +237,7 @@ if __name__ == "__main__":
|
|||||||
args.signed = False
|
args.signed = False
|
||||||
|
|
||||||
# - Compilation
|
# - Compilation
|
||||||
makedirs(PATHS["build_dir"], exist_ok=True)
|
makedirs(PATHS["bin_dir"], exist_ok=True)
|
||||||
|
|
||||||
if not args.no_return: # Insert `return` statement
|
if not args.no_return: # Insert `return` statement
|
||||||
# XXX: The bytebeat code is enclosed in parentheses to allow for the
|
# XXX: The bytebeat code is enclosed in parentheses to allow for the
|
||||||
|
Loading…
Reference in New Issue
Block a user