From b570c4d6e660ffe36427a29ee34f87298b77bfda Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 18 Mar 2013 16:36:30 -0400 Subject: fix path handling in png make target lz files were being decompressed to the top directory (gfx/) --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5c7c0d246..3d917f941 100644 --- a/Makefile +++ b/Makefile @@ -44,15 +44,15 @@ pokecrystal.gbc: pokecrystal.o lzs: ${VERTGFX} ${HORIZGFX} pngs: - cd extras; python gfx.py mass-decompress; python gfx.py dump-pngs + cd extras && python gfx.py mass-decompress && python gfx.py dump-pngs front.png: tiles.png - cd extras; python gfx.py png-to-lz --front $@ $(OBJECT_DIRECTORY)/tiles.2bpp + cd extras && python gfx.py png-to-lz --front $@ $(OBJECT_DIRECTORY)/tiles.2bpp tiles.png: - cd extras; python gfx.py png-to-2bpp $@ + cd extras && python gfx.py png-to-2bpp $@ .png: ${VERTGFX} - cd extras; python gfx.py png-to-lz --vert $@ + cd extras && python gfx.py png-to-lz --vert $@ .png: ${HORIZGFX} - cd extras; python gfx.py png-to-lz $@ + cd extras && python gfx.py png-to-lz $@ -- cgit v1.2.3 From b6c874d4d41913e4ac9b88fd7244fb3de0da9945 Mon Sep 17 00:00:00 2001 From: yenatch Date: Thu, 4 Apr 2013 22:40:44 -0400 Subject: windows-specific make targets compiles properly on windows now --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3d917f941..6f91979dc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ .SUFFIXES: .asm .tx .o .gbc .png .2bpp .lz -TEXTFILES = text/sweethoney.tx \ +TEXTFILES = \ + text/sweethoney.tx \ text/phone/bill.tx \ text/phone/elm.tx \ text/phone/mom.tx \ @@ -10,7 +11,8 @@ TEXTFILES = text/sweethoney.tx \ text/common_3.tx \ main.tx -VERTGFX = gfx/pics/%.png \ +VERTGFX = \ + gfx/pics/%.png \ gfx/trainers/%.png HORIZGFX = $(filter-out gfx/%.png, $(VERTGFX)) @@ -24,10 +26,16 @@ HORIZGFX = $(filter-out gfx/%.png, $(VERTGFX)) # so take care to reorganize accordingly all: pokecrystal.gbc + cmp baserom.gbc $< + +win: pokecrystal.gbc + fc baserom.gbc $< clean: rm -f main.tx pokecrystal.o pokecrystal.gbc ${TEXTFILES} +winclean: + del main.tx pokecrystal.o pokecrystal.gbc .\text\sweethoney.tx .\text\phone\bill.tx .\text\phone\elm.tx .\text\phone\mom.tx .\text\phone\trainers1.tx .\text\common.tx .\text\common_2.tx .\text\common_3.tx pokecrystal.o: pokecrystal.asm constants.asm wram.asm ${TEXTFILES} rgbasm -o pokecrystal.o pokecrystal.asm @@ -38,7 +46,6 @@ pokecrystal.o: pokecrystal.asm constants.asm wram.asm ${TEXTFILES} pokecrystal.gbc: pokecrystal.o rgblink -o $@ $< rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@ - cmp baserom.gbc $@ lzs: ${VERTGFX} ${HORIZGFX} -- cgit v1.2.3 From f076f14b9806a517297efe649c4ae9cf4ae2025a Mon Sep 17 00:00:00 2001 From: yenatch Date: Thu, 4 Apr 2013 22:42:14 -0400 Subject: double-colon rules for .png overrides --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6f91979dc..ce6258cc8 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,8 @@ front.png: tiles.png cd extras && python gfx.py png-to-lz --front $@ $(OBJECT_DIRECTORY)/tiles.2bpp tiles.png: cd extras && python gfx.py png-to-2bpp $@ -.png: ${VERTGFX} +.png:: ${VERTGFX} cd extras && python gfx.py png-to-lz --vert $@ -.png: ${HORIZGFX} +.png:: ${HORIZGFX} cd extras && python gfx.py png-to-lz $@ -- cgit v1.2.3