forked from bubble2k16/emus3ds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (29 loc) · 1.02 KB
/
Makefile
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
TOPDIR ?= $(CURDIR)
.PHONY: pot
TARGET := emus3ds
APP_TITLE := High compatibility emulators for 3DS
APP_VERSION := R2
CFILES := $(wildcard src/3ds/*.c) \
$(wildcard src/cores/temperpce/3ds/*.c) \
$(wildcard src/cores/picodrive/3ds/*.c)
CPPFILES := $(wildcard src/3ds/*.cpp) \
$(wildcard src/cores/temperpce/3ds/*.cpp) \
$(wildcard src/cores/virtuanes/3ds/*.cpp) \
$(wildcard src/cores/picodrive/3ds/*.cpp)
po/%/emus3ds.po: $(TOPDIR)/$(notdir $(TARGET)).pot
@echo "Building $@"
@[ -d $(dir $@) ] || mkdir -p $(dir $@)
@if [ -f $@ ]; \
then \
msgmerge --backup=off -qU $@ $< && touch $@; \
else \
msginit -i $< --no-translator -l $*.UTF-8 -o $@; \
fi
pot: $(CFILES) $(CPPFILES)
@echo "Building $(TARGET).pot"
xgettext -o $(TARGET).pot $^ -kgetText -c \
--from-code="UTF-8" \
--copyright-holder="R-YaTian" \
--package-name="$(APP_TITLE)" \
--package-version="$(APP_VERSION)" \
--msgid-bugs-address="[email protected]"