Yet more build tweaks for .pot file generation.

Remove po/POTFILES.in (again) from svn.  Since po/POTFILES.in is added
to BUILT_SOURCES, it's auto-generated now whenever the `make all',
`make check', or `make install' targets are processed, (but not
recreated every time).  And `make pot' forces the recreation of
po/POTFILES.in.  Hopefully, this will works even on OSX.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12271 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-01-06 02:49:27 +00:00
parent 769c10385a
commit 4048f595e1
2 changed files with 12 additions and 13 deletions

View File

@ -93,7 +93,6 @@ make-gnucash-potfiles: make-gnucash-potfiles.in Makefile
-e 's:@-PERL-@:${PERL}:g'
chmod +x $@.tmp
mv $@.tmp $@
./make-gnucash-potfiles > ./po/POTFILES.in
.goffice-links:
rm -f goffice
@ -162,11 +161,20 @@ distclean-local:
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
pot: Makefile
.PHONY: pot
pot: Makefile po/POTFILES.in
rm -f intl-scm/guile-strings.c
make -C intl-scm
${MAKE} -C intl-scm
rm -f po/$(PACKAGE).pot
make -C po $(PACKAGE).pot
${MAKE} -C po $(PACKAGE).pot
BUILT_SOURCES = po/POTFILES.in
po/POTFILES.in: make-gnucash-potfiles .potfiles
./make-gnucash-potfiles > ./po/POTFILES.in
.potfiles:
SVN = svn
XSLTPROC = xsltproc

View File

@ -1,9 +0,0 @@
# POTFILES.in: This file is overwritten my the `make pot` target or by
# the make-gnucash-potfiles script.
#
# The reason why we version-control this generated file is because the
# Makefile in this directory is not under our control (but instead
# gettext's) and it doesn't contain any rules for creating this
# file. The gettext setup assumes by convention that this file exists
# and doesn't need to be generated, so as long as we use the gettext
# build system in the po directory, we need to follow that convention.