]> git.lyx.org Git - lyx.git/blobdiff - po/Rules-lyx
Add optional argument to right footer in order to eliminate the Double page numbers...
[lyx.git] / po / Rules-lyx
index 4c853320f7089357863643819c1458e5c3f9d768..22fdb26491f5e01656c94e15ce402eaea485a098 100644 (file)
@@ -7,11 +7,12 @@ POTFILE_IN_DEPS = $(shell find $(top_srcdir)/src -name Makefile.am)
 
 $(DOMAIN).pot-update: l10n_pots
 
+# The ui_*.h and moc_*.cpp filters must match the patterns in src/frontends/qt4/Makefile.am
 ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
        LC_ALL=C ; export LC_ALL ; \
        rm -f $@-t \
        && ( cd $(top_srcdir); \
-            grep -l "_(\".*\")" `find src \( -name '*.h' -o -name '*.cpp' -o -name '*.cpp.in' \) -print` |\
+            grep -l "_(\".*\")" `find src \( \( -name '*.h' -a ! -name 'ui_*.h' \) -o \( -name '*.cpp' -a ! -name 'moc_*.cpp' \) \) -print` |\
             grep -v -e "src/support/Package.cpp$$" |\
             sort | uniq ) > $@-t \
        && mv $@-t $@
@@ -30,6 +31,11 @@ layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*
        LC_ALL=C ; export LC_ALL ; \
        python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t layouts ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module
 
+$(top_srcdir)/lib/layouttranslations: $(POFILES) $(top_srcdir)/lib/layouts/*.layout \
+               $(top_srcdir)/lib/layouts/*.inc $(top_srcdir)/lib/layouts/*.module
+       LC_ALL=C ; export LC_ALL ; \
+       python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t layouttranslations ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc ${top_srcdir}/lib/layouts/*.module
+
 languages_l10n.pot: $(top_srcdir)/lib/languages
        python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t languages ${top_srcdir}/lib/languages