~profzoom/ubuntu/quantal/wmaker/bug-1079925

« back to all changes in this revision

Viewing changes to WPrefs.app/po/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-11-10 14:05:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041110140530-qpd66b5lm38x7apk
Tags: upstream-0.91.0
ImportĀ upstreamĀ versionĀ 0.91.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CATALOGS = @WPMOFILES@
 
2
 
 
3
nlsdir = $(NLSDIR)
 
4
 
 
5
CLEANFILES = WPrefs.pot $(CATALOGS)
 
6
 
 
7
EXTRA_DIST = bg.po ca.po cs.po de.po es.po et.po fi.po fr.po hr.po hu.po \
 
8
        it.po ja.po ko.po pt.po ru.po sk.po zh_CN.po zh_TW.po
 
9
 
 
10
POTFILES  = \
 
11
        $(top_builddir)/WPrefs.app/Appearance.c \
 
12
        $(top_builddir)/WPrefs.app/Configurations.c \
 
13
        $(top_builddir)/WPrefs.app/Expert.c \
 
14
        $(top_builddir)/WPrefs.app/Focus.c \
 
15
        $(top_builddir)/WPrefs.app/FontSimple.c \
 
16
        $(top_builddir)/WPrefs.app/Icons.c \
 
17
        $(top_builddir)/WPrefs.app/KeyboardSettings.c \
 
18
        $(top_builddir)/WPrefs.app/KeyboardShortcuts.c \
 
19
        $(top_builddir)/WPrefs.app/Menu.c \
 
20
        $(top_builddir)/WPrefs.app/MenuPreferences.c \
 
21
        $(top_builddir)/WPrefs.app/MouseSettings.c \
 
22
        $(top_builddir)/WPrefs.app/Paths.c \
 
23
        $(top_builddir)/WPrefs.app/Preferences.c \
 
24
        $(top_builddir)/WPrefs.app/TexturePanel.c \
 
25
        $(top_builddir)/WPrefs.app/Themes.c \
 
26
        $(top_builddir)/WPrefs.app/WPrefs.c \
 
27
        $(top_builddir)/WPrefs.app/WindowHandling.c \
 
28
        $(top_builddir)/WPrefs.app/Workspace.c \
 
29
        $(top_builddir)/WPrefs.app/imagebrowser.c \
 
30
        $(top_builddir)/WPrefs.app/main.c
 
31
 
 
32
SUFFIXES = .po .mo
 
33
 
 
34
.po.mo: 
 
35
        msgfmt -c -o $@ $<
 
36
 
 
37
 
 
38
all-local: $(CATALOGS)
 
39
 
 
40
WPrefs.pot: $(POTFILES)
 
41
        xgettext --default-domain=WPrefs \
 
42
        --add-comments --keyword=_ $(POTFILES)
 
43
        if cmp -s WPrefs.po WPrefs.pot; then \
 
44
            rm -f WPrefs.po; \
 
45
        else \
 
46
            mv -f WPrefs.po WPrefs.pot; \
 
47
        fi
 
48
 
 
49
 
 
50
install-data-local:  $(CATALOGS)
 
51
        $(mkinstalldirs) $(DESTDIR)$(nlsdir)
 
52
        chmod 755 $(DESTDIR)$(nlsdir) 
 
53
        for n in $(CATALOGS) __DuMmY ; do \
 
54
                if test "$$n" -a "$$n" != "__DuMmY" ; then \
 
55
                        l=`basename $$n .mo`; \
 
56
                        $(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
 
57
                        chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
 
58
                        chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
 
59
                        $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/WPrefs.mo; \
 
60
                fi; \
 
61
        done
 
62