Rearrange Makefile by content

This commit is contained in:
Rangi 2018-01-22 11:36:39 -05:00
parent 9e8f33d605
commit 2e0a9ea081
1 changed files with 10 additions and 7 deletions

View File

@ -9,12 +9,7 @@ RGBFIX := rgbfix
RGBGFX := rgbgfx RGBGFX := rgbgfx
RGBLINK := rgblink RGBLINK := rgblink
.SUFFIXES: roms := pokecrystal.gbc pokecrystal11.gbc
.PHONY: all clean tools compare crystal crystal11
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:
crystal_obj := \ crystal_obj := \
audio.o \ audio.o \
@ -35,7 +30,13 @@ lib/mobile/main.o
crystal11_obj := $(crystal_obj:.o=11.o) crystal11_obj := $(crystal_obj:.o=11.o)
roms := pokecrystal.gbc pokecrystal11.gbc ### Build targets
.SUFFIXES:
.PHONY: all crystal crystal11 clean compare tools
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:
all: crystal all: crystal
crystal: pokecrystal.gbc crystal: pokecrystal.gbc
@ -222,6 +223,8 @@ gfx/mobile/pichu_animated.2bpp: tools/gfx += --trim-whitespace
gfx/unknown/unknown_egg.2bpp: rgbgfx += -h gfx/unknown/unknown_egg.2bpp: rgbgfx += -h
### Catch-all graphics rules
%.bin: ; %.bin: ;
%.blk: ; %.blk: ;