Exclude generated files from .po string extraction.

Now it is no longer needed to use a tree that was never used for building
for remerging .po files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38585 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2011-05-04 18:51:15 +00:00
parent 2b58df827b
commit f0a669014f
2 changed files with 4 additions and 1 deletions

View File

@ -7,11 +7,12 @@ POTFILE_IN_DEPS = $(shell find $(top_srcdir)/src -name Makefile.am)
$(DOMAIN).pot-update: l10n_pots $(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) ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
LC_ALL=C ; export LC_ALL ; \ LC_ALL=C ; export LC_ALL ; \
rm -f $@-t \ rm -f $@-t \
&& ( cd $(top_srcdir); \ && ( 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$$" |\ grep -v -e "src/support/Package.cpp$$" |\
sort | uniq ) > $@-t \ sort | uniq ) > $@-t \
&& mv $@-t $@ && mv $@-t $@

View File

@ -10,11 +10,13 @@ CLEANFILES += $(BUILT_SOURCES)
# Use _() for localization instead of tr() or trUtf8() # Use _() for localization instead of tr() or trUtf8()
UIC4FLAGS=-tr lyx::qt_ UIC4FLAGS=-tr lyx::qt_
# The ui_%.h pattern must match the filter in ../../../po/Rules-lyx
ui_%.h: ui/%.ui ui_%.h: ui/%.ui
$(AM_V_GEN)$(UIC4) $(UIC4FLAGS) $< -o $@ $(AM_V_GEN)$(UIC4) $(UIC4FLAGS) $< -o $@
MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp) MOCEDFILES = $(MOCHEADER:%.h=moc_%.cpp)
# The moc_%.cpp pattern must match the filter in ../../../po/Rules-lyx
moc_%.cpp: %.h moc_%.cpp: %.h
$(AM_V_GEN)$(MOC4) -o $@ $< $(AM_V_GEN)$(MOC4) -o $@ $<