-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
54 lines (44 loc) · 2.09 KB
/
Makefile.am
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This file is part of the KDE libraries
# Copyright (C) 1996-1997 Matthias Kalle Dalheimer (kalle@kde.org)
# (C) 1997,1998 Stephan Kulow (coolo@kde.org)
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
# You should have received a copy of the GNU Library General Public License
# along with this library; see the file COPYING.LIB. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
SUBDIRS = kdecore kdeui jscript kimgio khtmlw kfmlib kfile \
mediatool kspell kab po doc toolbar kdetest
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
AUTOMAKE_OPTIONS = foreign 1.4
messages:
rm -rf po.backup
mkdir po.backup
for i in `ls -1 po/*.pot | sed -e "s#po/##"`; do \
grep -v "\"POT-Creation" po/$$i > po.backup/$$i ; \
cp po/$$i po.backup/backup_$$i ; \
done
$(XGETTEXT) -C -ktranslate -ki18n */*.cpp */*.cc && mv messages.po po/kdelibs.pot
$(XGETTEXT) -C -ktranslate -ki18n po/texts.cpp && mv messages.po po/kde.pot
for i in `ls -1 po/*.pot | sed -e "s#po/##"`; do \
grep -v "POT-Creation-Date:" po/$$i > temp.pot ;\
if diff -q temp.pot po.backup/$$i; then \
echo "I'm restoring $$i" ;\
mv po.backup/backup_$$i po/$$i; \
else \
echo "will leave $$i"; \
fi ;\
done
rm -f temp.pot
rm -rf po.backup
(cd po && $(MAKE) -f Makefile.am merge)
EXTRA_DIST = admin bsd-port debian kdelibs.spec.in kdoc.rules
dist-hook:
cd $(top_distdir) && perl $(top_srcdir)/admin/automoc -padmin