Fix a bug where make -r will work but exit with an error

Also fixed the help message to say "make all [format]" instead of "make [format]"
This commit is contained in:
2024-07-31 13:09:49 -07:00
parent 4dd774d080
commit 888825b24a

3
make
View File

@ -49,7 +49,7 @@ def print_help():
Graphics compilation wrapper Graphics compilation wrapper
Use "make all" to compile all graphics in all formats Use "make all" to compile all graphics in all formats
Use "make [svg|png|webp]" to compile all graphics in a specific format Use "make all [svg|png|webp]" to compile all graphics in a specific format
Flags: Flags:
-h or --help - Show this message -h or --help - Show this message
@ -74,6 +74,7 @@ if len(sys.argv) != 1:
print("Removing output directory...") print("Removing output directory...")
shutil.rmtree("output") # Scary shutil.rmtree("output") # Scary
print("Output directory removed") print("Output directory removed")
sys.exit()
if sys.argv[1] == "all": if sys.argv[1] == "all":
if len(sys.argv) == 3: if len(sys.argv) == 3: