forked from StanHash/FE-CHAX
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtools.mk
38 lines (30 loc) · 1.43 KB
/
tools.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# making sure devkitARM exists and is set up
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif
# including devkitARM tool definitions
include $(DEVKITARM)/base_tools
ifeq ($(OS),Windows_NT)
EXE := .exe
else
EXE :=
endif
# Making sure we are using python 3
ifeq ($(shell python -c 'import sys; print(int(sys.version_info[0] > 2))'),1)
export PYTHON3 := python
else
export PYTHON3 := python3
endif
EA := $(realpath .)/Tools/EventAssembler/ColorzCore$(EXE)
# additional tools
export PARSEFILE := $(realpath .)/Tools/EventAssembler/Tools/ParseFile$(EXE)
export PORTRAITFORMATTER := $(realpath .)/Tools/EventAssembler/Tools/PortraitFormatter$(EXE)
export PNG2DMP := $(realpath .)/Tools/EventAssembler/Tools/Png2Dmp$(EXE)
export COMPRESS := $(realpath .)/Tools/EventAssembler/Tools/compress$(EXE)
export LYN := $(realpath .)/Tools/EventAssembler/Tools/lyn$(EXE)
export EADEP := $(realpath .)/Tools/EventAssembler/ea-dep$(EXE)
export PORTRAIT_PROCESS := $(PYTHON3) $(realpath .)/Tools/PyTools/portrait-process.py
export TEXT_PROCESS := $(PYTHON3) $(realpath .)/Tools/PyTools/text-process-classic.py
export C2EA := $(PYTHON3) $(realpath .)/Tools/PyTools/NMM2CSV/c2ea.py
export TMX2EA := $(PYTHON3) $(realpath .)/Tools/PyTools/TMX2EA/tmx2ea.py
NOTIFY_PROCESS = @echo "$(notdir $<) => $(notdir $@)"