Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcurrie committed Mar 13, 2022
1 parent e6d4252 commit 7acaf7d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mgbdis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import os
import png
from shutil import copyfile
from shutil import which

from instruction_set import instructions, cb_instructions, instruction_variants

Expand Down Expand Up @@ -1171,10 +1170,7 @@ def write_makefile(self):
else:
f.write('\trgblink -n game.sym -m game.map -o $@ $<\n')
f.write('\trgbfix -v -p 255 $@\n\n')
if which("md5") is not None:
f.write('\tmd5 $@\n\n')
else:
f.write('\tmd5sum $@\n\n')
f.write('\t@if which md5sum &>/dev/null; then md5sum $@; else md5 $@; fi\n\n')

f.write('clean:\n')
f.write('\trm -f game.o game.{} game.sym game.map\n'.format(rom_extension))
Expand Down

0 comments on commit 7acaf7d

Please sign in to comment.