File: Makefile

package info (click to toggle)
tinyca 0.7.5-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 796 kB
  • ctags: 186
  • sloc: perl: 8,706; makefile: 59; sh: 11
file content (25 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (5)
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
POTFILES=$(wildcard ../lib/*.pm) $(wildcard ../lib/GUI/*.pm) ../tinyca2
CATALOGS=de.mo es.mo cs.mo fr.mo sv.mo

all: $(CATALOGS)

.po.mo:
	msgfmt -o $@ $<
	install -m 644 $@ ../locale/`basename $@ .mo`/LC_MESSAGES/tinyca2.mo

%.po: tinyca2.pot
	msgmerge -vU $@ tinyca2.pot

tinyca2.pot: $(POTFILES)
	xgettext --add-comments \
		--keyword=_ \
		--keyword=N_ \
		--language=C \
		-o tinyca2.pot \
		$(POTFILES); \

clean:
	rm -f $(CATALOGS)
	rm -f tinyca2.pot

.SUFFIXES: .po .pot .mo