phony targets for tools

This commit is contained in:
YamaArashi 2015-11-13 22:20:00 -08:00
parent 4c733f3811
commit fa863b11b6

View file

@ -11,7 +11,7 @@ SHA1 := sha1sum -c
.PRECIOUS: %.1bpp %.4bpp %.8bpp %.gbapal %.lz .PRECIOUS: %.1bpp %.4bpp %.8bpp %.gbapal %.lz
.PHONY: rom tools clean compare .PHONY: rom tools gbagfx scaninc clean compare
gfx := tools/gbagfx/gbagfx gfx := tools/gbagfx/gbagfx
1bpp := $(gfx) 1bpp 1bpp := $(gfx) 1bpp
@ -32,7 +32,13 @@ elf := $(rom:.gba=.elf)
rom: $(rom) rom: $(rom)
tools: $(gfx) $(scaninc) tools: gbagfx scaninc
gbagfx:
cd tools/gbagfx && make
scaninc:
cd tools/scaninc && make
# For contributors to make sure a change didn't affect the contents of the ROM. # For contributors to make sure a change didn't affect the contents of the ROM.
compare: $(rom) compare: $(rom)
@ -59,9 +65,3 @@ include graphics_file_rules.mk
$(rom): $(objs) $(rom): $(objs)
./pokeld -T ld_script.txt -T wram_syms.txt -o $(elf) $(objs) ./pokeld -T ld_script.txt -T wram_syms.txt -o $(elf) $(objs)
./pokeobjcopy -O binary $(elf) $(rom) ./pokeobjcopy -O binary $(elf) $(rom)
$(gfx):
cd tools/gbagfx && make clean && make
$(scaninc):
cd tools/scaninc && make clean && make