| 1 |
# Generated automatically from Makefile.in by configure. |
| 2 |
|
| 3 |
include ../CONFIG |
| 4 |
|
| 5 |
MSGMERGE = msgmerge |
| 6 |
|
| 7 |
PO_FILES = da.po de.po es.po fr.po it.po |
| 8 |
CATALOGS = da.mo de.mo es.mo fr.mo it.mo |
| 9 |
|
| 10 |
POTFILES = ../iflib/rdconfig.c ../ifgate/iftoss.c \ |
| 11 |
../ifgate/ifmail.c ../ifgate/ifpack.c \ |
| 12 |
../ifcico/ifcico.c ../ifcico/ifroute.c |
| 13 |
|
| 14 |
OTHERS = Makefile |
| 15 |
|
| 16 |
############################################################################# |
| 17 |
|
| 18 |
all: ${NLSPACKAGE}.pot ${CATALOGS} |
| 19 |
|
| 20 |
${NLSPACKAGE}.pot: ${POTFILES} |
| 21 |
xgettext --default-domain=${NLSPACKAGE} \ |
| 22 |
--add-comments --keyword=_ --keyword=N_ ${POTFILES} |
| 23 |
if cmp -s ${NLSPACKAGE}.po ${NLSPACKAGE}.pot; then \ |
| 24 |
rm -f ${NLSPACKAGE}.po; \ |
| 25 |
else \ |
| 26 |
mv ${NLSPACKAGE}.po ${NLSPACKAGE}.pot; \ |
| 27 |
fi |
| 28 |
|
| 29 |
update-po: Makefile |
| 30 |
${MAKE} ${NLSPACKAGE}.pot |
| 31 |
catalogs='${CATALOGS}'; \ |
| 32 |
for cat in $$catalogs; do \ |
| 33 |
lang=`echo $$cat | sed 's/.mo//'`; \ |
| 34 |
mv $$lang.po $$lang.old.po ; \ |
| 35 |
echo -n "$$lang:"; \ |
| 36 |
if tupdate $(NLSPACKAGE).pot $$lang.old.po > $$lang.po ; \ |
| 37 |
then \ |
| 38 |
echo "tupdate of $$lang succeeded" ; \ |
| 39 |
rm -f $$lang.old.po; \ |
| 40 |
else \ |
| 41 |
echo "tupdate of $$lang failed!"; \ |
| 42 |
rm -f $$lang.po; \ |
| 43 |
mv $$lang.old.po $$lang.po; \ |
| 44 |
fi; \ |
| 45 |
done |
| 46 |
|
| 47 |
clean: |
| 48 |
rm -f *mo ${NLSPACKAGE}.pot filelist |
| 49 |
|
| 50 |
filelist: Makefile |
| 51 |
BASE=`pwd`; \ |
| 52 |
BASE=`basename $${BASE}`; \ |
| 53 |
(for f in ${PO_FILES} ${OTHERS} ;do echo ifmail/$${BASE}/$$f; done) \ |
| 54 |
>filelist |
| 55 |
|
| 56 |
install: all |
| 57 |
for n in ${CATALOGS}; do \ |
| 58 |
l=`basename $$n .mo`; \ |
| 59 |
${INSTALL} -m 755 -d ${DESTDIR}/${NLSDIR}/$$l; \ |
| 60 |
${INSTALL} -m 755 -d ${DESTDIR}/${NLSDIR}/$$l/LC_MESSAGES; \ |
| 61 |
${INSTALL} -m 644 $$n ${DESTDIR}/${NLSDIR}/$$l/LC_MESSAGES/${NLSPACKAGE}.mo; \ |
| 62 |
done |
| 63 |
|
| 64 |
%.mo: %.po |
| 65 |
msgfmt -o $@ $< |
| 66 |
|
| 67 |
depend: |
| 68 |
|
| 69 |
man: |