-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (31 loc) · 869 Bytes
/
Makefile
File metadata and controls
37 lines (31 loc) · 869 Bytes
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
SHELL=/bin/bash -e
all: clean build
build:
CFLAGS='-g3 -O3' meson setup build $(ARGS) \
--buildtype=debug \
--prefix="/" \
-Dlocaledir=`pwd`/build/po \
-Dplugindir=`pwd`/build \
&& \
ninja -C build -v
pot:
xgettext --language=C++ -v --keyword=_\
-o po/ymp.pot --from-code="utf-8" \
`find src -type f -iname "*.c"` 2>/dev/null
for file in `ls po/*.po`; do \
msgmerge $$file po/ymp.pot -o $$file.new ; \
echo POT: $$file; \
rm -f $$file ; \
mv $$file.new $$file ; \
done
sed -f data/fix-turkish.sed -i po/tr.po
test:
@mkdir -p build/test ; \
for example in $(wildcard build/examples/*) ; do \
if [ -f $$example ] ; then \
echo Testing: $$example ; \
cd build/test ; ../../$$example >/dev/null; cd ../.. ;\
fi \
done ; echo DONE
clean:
rm -rvf build docs/html docs/latex