mirror of
https://github.com/lesserkuma/pokecrystal-news-en.git
synced 2026-04-26 01:45:29 -05:00
- Applied all of Matze's latest fixes - Used IF DEFs to support the building of Japanese and international news in the same repo.
41 lines
645 B
Makefile
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
|
|
|