From 2f74406e92eb6a183f29d8d5e800ddd3dc695938 Mon Sep 17 00:00:00 2001 From: dark-samus Date: Fri, 17 Jul 2020 03:52:56 -0400 Subject: [PATCH] standardize makefile a bit --- Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 90bf1ca4..ed71b35f 100644 --- a/Makefile +++ b/Makefile @@ -110,28 +110,24 @@ TOOLDIRS := $(filter-out tools/agbcc tools/binutils,$(wildcard tools/*)) TOOLBASE = $(TOOLDIRS:tools/%=%) TOOLS = $(foreach tool,$(TOOLBASE),tools/$(tool)/$(tool)$(EXE)) -.PHONY: all rom tools clean-tools mostlyclean clean compare tidy $(TOOLDIRS) +.PHONY: all setup clean-tools mostlyclean clean tidy $(TOOLDIRS) MAKEFLAGS += --no-print-directory AUTO_GEN_TARGETS := -all: tools rom - -rom: $(ROM) -ifeq ($(COMPARE),1) +all: $(ROM) @$(SHA1) tmc.sha1 -endif -tools: $(TOOLDIRS) +# kept for backwards compat +compare: $(ROM) + @$(SHA1) tmc.sha1 + +setup: $(TOOLDIRS) $(TOOLDIRS): @$(MAKE) -C $@ -# For contributors to make sure a change didn't affect the contents of the ROM. -compare: - @$(MAKE) COMPARE=1 - mostlyclean: tidy rm -f sound/direct_sound_samples/*.bin rm -f $(SONG_OBJS) $(MID_SUBDIR)/*.s