3 @echo "Generating/Updating Messages" ;\
4 echo "Generating/Updating Source Messages" ;\
5 find $(top_srcdir) -type d | grep -v CVS | sed -e 's,$$,/,' > dirs ;\
6 mfs=`find $(top_srcdir) -name Makefile.am | xargs egrep -l '^messages:'` ;\
8 if test ! "$$dir" = "./Makefile.am"; then \
10 egrep -v "^$$dir" dirs > dirs.new && mv dirs.new dirs ;\
13 egrep -v "/tests" dirs > dirs.new && mv dirs.new dirs ;\
15 find $$dirs -maxdepth 1 -name "*.cpp" -print > files ;\
16 find $$dirs -maxdepth 1 -name "*.cc" -print >> files ;\
17 find $$dirs -maxdepth 1 -name "*.h" -print >> files ; \
18 if test -z "$$EXTRACTRC"; then \
19 EXTRACTRC=extractrc ;\
21 $$EXTRACTRC $(top_srcdir)/*/*.rc > rc.cpp ;\
22 echo "Files considered:";\
24 $(XGETTEXT) rc.cpp `cat files` -ktr2i18n -ki18n -kI18N_NOOP -o $(top_srcdir)/po/$(PACKAGE).pot ;\
25 rm -f rc.cpp dirs files ;\
26 #echo "Generating/Updating Desktop File Messages" ;\
27 cd .. && ./po/createdesktop ./po/desktop_file_list ./po/desktop.pot && cd po
28 update-all: messages merge
29 # $(EXTRACTRC) `find $$dirs -maxdepth 1 -name "*.rc" -o -name "*.ui"` > rc.cpp