File: Makefile.am

package info (click to toggle)
gentoo 0.11.19-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,456 kB
  • ctags: 3,228
  • sloc: ansic: 26,001; makefile: 393; sh: 330
file content (32 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download
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
# -----------------------------------------------------------------------------
# gentoo root Makefile.am
# -----------------------------------------------------------------------------

EXTRA_DIST=BUGS CONFIG-CHANGES CREDITS README.NLS README.gtkrc ONEWS docs icons gentoo.spec
SUBDIRS=widgets src icons

sysconf_DATA=gentoorc gentoogtkrc

install:
	$(mkinstalldirs) $(DESTDIR)/$(mandir)/man1
	$(INSTALL) -m 644 docs/gentoo.1x $(DESTDIR)/$(mandir)/man1

# ----------------------------------------- Internationalization

# This extracts all marked-up strings for translation, and then merges the
# freshly created PO file with any existing translations. Each translation
# should live in the locale/ directory, within a language-specific subdir.
# In that subdir, there should be a LC_MESSAGES subdir, in which (finally)
# the language-specific PO-file should reside.
lang:
	xgettext -LC --force -dgentoo --keyword -k_ -kN_ $(SRC)/*.c &&\
	for l in locale/* ; do\
		cd $$l/LC_MESSAGES/ && msgmerge ./gentoo.po ../../../gentoo.po -ogentoo.po\
	;done

# This rebuilds the binary message catalogs for all translations.
# Handy when one or more locale-specific PO-files have changed.
langfmt:
	for l in locale/* ; do\
		cd $$l/LC_MESSAGES && msgfmt -ogentoo.mo gentoo.po\
	;done