view locale/GNUmakefile @ 2334:c5e5e9e176d2

add "checked" to truth values for Boolean input
author Richard Jones <richard@users.sourceforge.net>
date Tue, 18 May 2004 21:53:18 +0000
parents 8ae58eda9331
children 106737dbe689
line wrap: on
line source

# Extract translatable strings from Roundup sources,
# update and compile all existing translations
#
# $Id: GNUmakefile,v 1.2 2004-05-18 19:36:12 a1s Exp $

# tool locations
XPOT ?= xpot
MSGFMT ?= msgfmt
MSGMERGE ?= msgmerge
XGETTEXT ?= xgettext

TEMPLATE=roundup.pot

PACKAGES=$(shell find ../roundup -type d|grep -v CVS)
SOURCES=$(PACKAGES:=/*.py)
PO_FILES=$(wildcard *.po)
MO_FILES=$(PO_FILES:.po=.mo)

.PHONY: $(TEMPLATE)

all: $(TEMPLATE) $(MO_FILES)

$(TEMPLATE):
	${XPOT} -n -o $@ $(SOURCES)
	${XGETTEXT} -j -w 80 -F \
	  --msgid-bugs-address=roundup-devel@lists.sourceforge.net \
	  --copyright-holder="See Roundup README.txt" \
	  -o $@ $(SOURCES)

%.po: $(TEMPLATE)
	${MSGMERGE} -U --suffix=.bak $@ $<

%.mo: %.po
	${MSGFMT} -o $@ $<

Roundup Issue Tracker: http://roundup-tracker.org/