X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=po%2FMakefile.in.in;h=c2e15de521301d4be9c102e04268f38ab37c7578;hp=25faa4b21ebd696b44863ee4ce4cb5bd56cb8edb;hb=07faf451b99879183ed7e909e43a0e065be1ee7f;hpb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5 diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 25faa4b2..c2e15de5 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -102,6 +102,7 @@ exec_prefix = @exec_prefix@ #datadir = $(prefix)/@DATADIRNAME@ -- not for xscreensaver datadir = @PO_DATADIR@ localedir = $(datadir)/locale +#localedir = $(prefix)/share/locale #gnulocaledir = $(prefix)/share/locale -- not for xscreensaver gnulocaledir = $(localedir) #gettextsrcdir = $(prefix)/share/glib-2.0/gettext/po @@ -191,8 +192,8 @@ all-no: $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) @INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) ; \ export INTLTOOL_EXTRACT ; \ - echo $(GENPOT) ; \ - $(GENPOT) + echo top_srcdir=$(top_srcdir) $(GENPOT) ; \ + top_srcdir=$(top_srcdir) $(GENPOT) install-strip: install @@ -279,7 +280,10 @@ maintainer-clean: distclean rm -f $(GMOFILES) depend: -distdepend: generate_potfiles_in update-po $(DISTFILES) +# fuck off. love, jwz. +#distdepend: generate_potfiles_in update-po $(DISTFILES) +distdepend:: + # jwz: Generates po/POTFILES.in by examining the source tree: # that way we don't have to keep this list up to date as files are added. @@ -288,10 +292,9 @@ generate_potfiles_in: @tmp=po.$$$$ ; \ file=POTFILES.in ; \ ( cd $(top_srcdir); \ - echo "# Auto-generated: `date`" ; \ + echo "# Auto-generated: `LANG=C date`" ; \ ( grep -l '_("' driver/*.[ch] ; \ - ls driver/*.glade \ - driver/*.glade2 \ + ls driver/*.glade2 \ driver/*.desktop.in \ hacks/config/*.xml ) | sort \ ) > $$tmp && \ @@ -317,6 +320,9 @@ update-po: Makefile for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ + if [ ! -f $$lang.po ] ; then \ + cp $(srcdir)/$$lang.po . ; \ + fi ; \ cp $$lang.po $$lang.old.po; \ echo $(MSGMERGE) $$lang; \ if $(MSGMERGE) $$lang >/dev/null 2>&1; then \