forked from pgadmin-org/pgadmin3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
49 lines (42 loc) · 1.54 KB
/
Makefile.am
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
39
40
41
42
43
44
45
46
47
48
49
#######################################################################
#
# pgAdmin III - PostgreSQL Tools
#
# Copyright (C) 2002 - 2009, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# Makefile.am - Makefile for *nix systems
#
#######################################################################
# Define the list of 'published' languages. This should match those
# at http://www.pgadmin.org/translation/status.php. These are the only ones
# that will be installed, but all will be shipped in the source tarball.
PUB_TX = af_ZA ca_ES cs_CZ de_DE es_ES fr_FR it_IT ja_JP ko_KR lv_LV pl_PL pt_PT ru_RU sr_RS zh_CN zh_TW
EXTRA_DIST = \
$(srcdir)/wxstd.pot \
$(srcdir)/??_??/pgadmin3.po \
$(srcdir)/wxstd.mo \
$(srcdir)/pgadmin3.lng \
$(srcdir)/pg_settings.csv \
$(srcdir)/??_??/pgadmin3.mo \
$(srcdir)/??_??/wxstd.mo
if !APPBUNDLE
i18ndir = $(pkgdatadir)/i18n
else
i18ndir = $(datadir)/i18n
endif
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(i18ndir)
@pub_tx='$(PUB_TX)'; \
for DIR in $$pub_tx; do \
$(mkinstalldirs) $(DESTDIR)$(i18ndir)/$$DIR; \
for FILE in `ls $(srcdir)/$$DIR/*.mo`; do \
$(install_sh) -c -m 644 $$FILE $(DESTDIR)$(i18ndir)/$$DIR/; \
done \
done
$(install_sh) -c -m 644 $(srcdir)/pgadmin3.lng $(DESTDIR)$(i18ndir)/$$DIR
$(install_sh) -c -m 644 $(srcdir)/pg_settings.csv $(DESTDIR)$(i18ndir)/$$DIR
$(install_sh) -c -m 644 $(srcdir)/wxstd.mo $(DESTDIR)$(i18ndir)/$$DIR
# Remove the wildcard directory that automake will have added for us
dist-hook:
rm -rf $(distdir)/\?\?_\?\?