Browse Source

Beautify Makefile output

master
Forest Belton 3 years ago
parent
commit
333e6413a3
1 changed files with 11 additions and 6 deletions
  1. +11
    -6
      Makefile

+ 11
- 6
Makefile View File

@ -18,20 +18,25 @@ OFILES := $(SFILES:%.s=%.o) $(MAP_S:%.s=%.o)
.PHONY: clean .PHONY: clean
is.gb is.gb.sym: $(OFILES) is.gb is.gb.sym: $(OFILES)
rgblink -o $@ -n $@.sym $(OFILES)
rgbfix -v $@
@echo "[LINK] is.gb"
@rgblink -o $@ -n $@.sym $(OFILES)
@rgbfix -v $@
$(OFILES): $(MAP_INC) $(OFILES): $(MAP_INC)
$(OFILES): $(SPRITE_2BPP) $(OFILES): $(SPRITE_2BPP)
%.o: %.s %.o: %.s
rgbasm -i inc -o $@ $<
@echo "[ASSEMBLE] $<"
@rgbasm -i inc -o $@ $<
png/map/%.s png/map/%.inc: png/map/%.png png/map/%_coll.png png/map/%.s png/map/%.inc: png/map/%.png png/map/%_coll.png
$(PYTHON) scripts/generate_map.py $<
@echo "[MAP] $<"
@$(PYTHON) scripts/generate_map.py $<
png/sprite/%.2bpp: png/sprite/%.png png/sprite/%.2bpp: png/sprite/%.png
rgbgfx -o $@ $<
@echo "[SPRITE] $<"
@rgbgfx -o $@ $<
clean: clean:
rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP)
@rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP)
@echo "All build files removed"

Loading…
Cancel
Save