mirror of
https://github.com/lesserkuma/pokecrystal-news-en.git
synced 2026-03-21 17:34:32 -05:00
47 lines
831 B
Makefile
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
|
|
|