Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (58 sloc) 1.74 KB
include campaign.def
LANGS=$(shell cat po/LINGUAS)
ifeq (${LANGS},)
POFILES=
DUMMYPOFILES=
UPDATEPOFILES=
GMOFILES=
CATALOGS=
else
POFILES=${LANGS:=.po}
DUMMYPOFILES=${LANGS:=.nop}
UPDATEPOFILES=${LANGS:=.po-update}
GMOFILES=${LANGS:=.gmo}
CATALOGS=${LANGS:=.gmo}
endif
all: setup
cd po && make update-po
for locale in `cat po/LINGUAS`; do \
if test -f po/$${locale}.gmo; then \
mkdir -p ${CAMPAIGN}/translations/$${locale}/LC_MESSAGES ;\
cp po/$${locale}.gmo ${CAMPAIGN}/translations/$${locale}/LC_MESSAGES/${DOMAIN}.mo ;\
else \
rm -f ${CAMPAIGN}/translations/$${locale}/LC_MESSAGES/${DOMAIN}.mo; \
if test -d ${CAMPAIGN}/translations/$${locale}; then \
rmdir ${CAMPAIGN}/translations/$${locale}/LC_MESSAGES; \
rmdir ${CAMPAIGN}/translations/$${locale}; \
fi; \
fi; \
done
cd po && make clean
setup:
test -f po/LINGUAS || :> po/LINGUAS
touch config.status
sed < po/Makefile.in.in > po/Makefile \
-e "s/@USE_NLS@/yes/g" \
-e "s/@POMAKEFILEDEPS@/POTFILES.in LINGUAS/" \
-e "s/@SET_MAKE@//" \
-e "s/@PACKAGE@/${DOMAIN}/" \
-e "s/@srcdir@/./" \
-e "s/@top_srcdir@/../" \
-e "s,@INSTALL_DATA@,/usr/bin/install -m644," \
-e "s,@XGETTEXT@,true," \
-e "s,@MSGFMT@,msgfmt," \
-e "s,@GMSGFMT@,msgfmt," \
-e "s,@MSGMERGE@,msgmerge," \
-e "s/@POFILES@/${POFILES}/" \
-e "s/@DUMMYPOFILES@/${DUMMYPOFILES}/" \
-e "s/@UPDATEPOFILES@/${UPDATEPOFILES}/" \
-e "s/@GMOFILES@/${GMOFILES}/" \
-e "s/@CATALOGS@/${CATALOGS}/" \
-e "/Makevars gets inserted here/ r po/Makevars"
clean:
-cd po && make distclean && rm -f stamp-po
rm -f config.status
realclean: clean
rm -rf ${CAMPAIGN}/translations
tarball:
tar zcf ../pokit.tgz Makefile README.pokit po/FINDCFG po/Makefile.in.in po/Makevars po/POTFILES.in po/remove-potcdate.sin
Jump to Line
Something went wrong with that request. Please try again.