-
Notifications
You must be signed in to change notification settings - Fork 315
/
Makefile.win
37 lines (33 loc) · 883 Bytes
/
Makefile.win
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
#-*- Makefile -*-
Rsharedir = ../share
Rlocaledir = $(Rsharedir)/locale
RGUI-CATALOGS = $(wildcard RGui-*.gmo)
# no use on Windows en@quot.gmo
CATALOGS = $(filter-out en@quot.gmo $(RGUI-CATALOGS), $(wildcard *.gmo))
all:
@echo
@echo "---------- Installing translations ------------"
@mkdir -p $(Rsharedir)
@catalogs='$(CATALOGS)'; \
echo -n "msgs: "; \
for cat in $$catalogs; do \
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
echo -n "$$lang "; \
dir=$(Rlocaledir)/$$lang/LC_MESSAGES; \
mkdir -p $$dir; \
cp -p $$cat $$dir/R.mo; \
done
@echo
@catalogs='$(RGUI-CATALOGS)'; \
echo -n "RGui: "; \
for cat in $$catalogs; do \
lang=`echo $$cat | sed -e 's/\.gmo$$//' -e 's/^RGui-//'`; \
echo -n "$$lang "; \
dir=$(Rlocaledir)/$$lang/LC_MESSAGES; \
mkdir -p $$dir; \
cp -p $$cat $$dir/RGui.mo; \
done
@echo
@echo
clean:
rm -rf $(Rlocaledir)