pokecrystal-news-en/Makefile
pokegold-spaceworld 91cac01d0b Added GER news build
Translation by LesserKuma
2023-09-30 17:01:12 -04:00

47 lines
831 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 first_issue_de
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:
all: first_issue
news: first_issue
news_en: first_issue_en
news_de: first_issue_de
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) -D _NEWS_EN -o news_en/$@.o "news_en/$@.asm"
$(RGBLINK) -x -o $@.bin news_en/$@.o
python fix.py $@.bin
first_issue_de:
$(RGBASM) -D _NEWS_DE -o news_de/$@.o "news_de/$@.asm"
$(RGBLINK) -x -o $@.bin news_de/$@.o
python fix.py $@.bin