summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTauwasser <Tauwasser@tauwasser.eu>2018-05-29 19:05:26 +0200
committerTauwasser <Tauwasser@tauwasser.eu>2018-05-29 19:05:36 +0200
commit8699ae6e7e21604fc11a152b56daa3493f00fc8a (patch)
treeeda4a2c72f644aec4fba5b08a5071eafb83997a1 /Makefile
parent5235696a9b90e2fda38284408b4c1c2c373cd456 (diff)
Makefile: use MD5 sums to compare ROMS instead of cmp
Signed-off-by: Tauwasser <Tauwasser@tauwasser.eu>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8d0f2db..acd9480 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+MD5 := md5sum -c
+
.PHONY: all compare clean text
.SUFFIXES:
@@ -33,8 +35,8 @@ $(ROMS): $(OBJS)
rgblink -d -n $(ROMS:.gb=.sym) -m $(ROMS:.gb=.map) -O $(BASEROM) -o $@ $^
rgbfix -f -v -k 01 -l 0x33 -m 0x03 -p 0 -r 3 -t "POKEMON2GOLD" $@
-compare: $(ROMS) $(BASEROM)
- cmp -l $^
+compare: $(ROMS)
+ @$(MD5) roms.md5
# Remove files generated by the build process.
clean: