~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to po/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20080329233633-l550uuwvfh1e68at
Tags: upstream-1.0+dfsg
ImportĀ upstreamĀ versionĀ 1.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
LC_BUILD=$(top_builddir)/build/locale
 
3
INSTALL_DIR=$(DESTDIR)$(datarootdir)/locale
 
4
 
 
5
FILES = $(addsuffix .po, $(ALL_LINGUAS))
 
6
GMO_FILES = $(patsubst %.po,$(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo,$(FILES))
 
7
MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo)
 
8
 
 
9
all: $(GMO_FILES)
 
10
 
 
11
update-po:
 
12
        pushd $(top_srcdir) && $(MDTOOL_RUN) gettext-update ; popd
 
13
 
 
14
$(GMO_FILES): $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo: %.po
 
15
        $(mkdir_p) $(dir $@)
 
16
        msgfmt '$<' -o '$@'
 
17
 
 
18
statistics:
 
19
        @for LANGFILE in $(ALL_LINGUAS); do \
 
20
                echo "$$LANGFILE.po:"; \
 
21
                msgfmt -o /dev/null --verbose "$$LANGFILE.po"; \
 
22
        done
 
23
        
 
24
$(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo
 
25
        $(mkdir_p) $(dir $@)
 
26
        $(install_sh) '$<' '$@'
 
27
 
 
28
install-data-local: $(MO_FILES)
 
29
 
 
30
uninstall-local:
 
31
        @for FILE in $(MO_FILES); do \
 
32
                if test -e "$$FILE"; then \
 
33
                        echo "Removing $$FILE"; \
 
34
                        rm "$$FILE"; \
 
35
                fi; \
 
36
        done
 
37
 
 
38
CLEANFILES = $(GMO_FILES)
 
39
EXTRA_DIST = Makefile $(FILES)
 
40
 
 
41
include $(top_srcdir)/Makefile.include