pokecrystal-news-en/Makefile
pokegold-spaceworld 778e5da3d2 Updates to 0.6.0 and international support for rankings
- Applied all of Matze's latest fixes
- Used IF DEFs to support the building of Japanese and international news in the same repo.
2023-07-21 20:04:50 -04:00

41 lines
645 B
Makefile

### Build tools
ifeq (,$(shell which sha1sum))
SHA1 := shasum
else
SHA1 := sha1sum
endif
RGBDS ?=
RGBASM ?= $(RGBDS)rgbasm
RGBFIX ?= $(RGBDS)rgbfix
RGBGFX ?= $(RGBDS)rgbgfx
RGBLINK ?= $(RGBDS)rgblink
### Build targets
.SUFFIXES:
.PHONY: all clean first_issue first_issue_en
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:
all: first_issue
news: first_issue
news_en: first_issue_en
clean:
rm -f news/*.o *.bin
first_issue:
$(RGBASM) -o news/$@.o "news/$@.asm"
$(RGBLINK) -x -o $@.bin news/$@.o
python fix.py $@.bin
first_issue_en:
$(RGBASM) -o news_en/$@.o "news_en/$@.asm"
$(RGBLINK) -x -o $@.bin news_en/$@.o
python fix.py $@.bin