File: Makefile.am

package info (click to toggle)
matchbox-panel 0.9.3-8.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,364 kB
  • ctags: 754
  • sloc: ansic: 6,331; sh: 794; makefile: 166
file content (49 lines) | stat: -rw-r--r-- 1,375 bytes parent folder | download | duplicates (4)
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
CATALOGS = @MOFILES@

CLEANFILES = $(CATALOGS) matchbox.pot

# keep this sorted
EXTRA_DIST = en.po es.po fi.po de.po cs.po fr.po zh_TW.po

POTFILES  = \
	$(top_builddir)/src/panel_menu.c   \
	$(top_builddir)/applets/mb-applet-system-monitor.c \
	$(top_builddir)/applets/mb-applet-wireless.c \
	$(top_builddir)/applets/mb-applet-clock.c \
	$(top_builddir)/applets/mb-applet-battery.c 


SUFFIXES = .po .mo

.po.mo: 
	$(MSGFMT) -o $@ $<

matchbox.pot: $(POTFILES)
	 $(XGETTEXT) --default-domain=matchbox \
	--add-comments --keyword=_ $(POTFILES)
	if cmp -s matchbox.po matchbox.pot; then \
	    rm -f matchbox.po; \
	else \
	    mv -f matchbox.po matchbox.pot; \
	fi

update.po: matchbox.pot
	for n in $(CATALOGS) __DuMmY ; do \
		if test "$$n" -a "$$n" != "__DuMmY" ; then \
		l=`basename $$n .mo`; \
		$(MSGMERGE) --update $$l.po matchbox.pot; \
		fi; \
	done

install-data-local:  $(CATALOGS)
	$(mkinstalldirs) $(DESTDIR)$(datadir)/locale
	chmod 755 $(DESTDIR)$(datadir)/locale 
	for n in $(CATALOGS) __DuMmY ; do \
		if test "$$n" -a "$$n" != "__DuMmY" ; then \
			l=`basename $$n .mo`; \
			$(mkinstalldirs) $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES; \
			chmod 755 $(DESTDIR)$(datadir)/locale/$$l; \
			chmod 755 $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES; \
			$(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/matchbox-panel.mo; \
		fi; \
	done