File: Makefile

package info (click to toggle)
webboard 0.3-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 240 kB
  • ctags: 94
  • sloc: python: 679; sh: 61; makefile: 56
file content (15 lines) | stat: -rw-r--r-- 363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

PO_FILES := $(wildcard *.po)

update-po: webboard.pot $(patsubst %.po,%.mo,$(wildcard *.po))
	# update the po files 
	for f in $(PO_FILES); do \
		intltool-update -r $${f%.po}  -g webboard ; \
	done

webboard.pot:
	intltool-update -p -g webboard

%.mo : %.po
	mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/ 
	msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/webboard.mo