X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=po%2FMakefile.in.in;h=3d4b02480bc25f6a952564189edf66eba1e870a2;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=c82f00661f60f3065b0741a91ecd11991d4d926e;hpb=96a411663168b0ba5432b407a83be55f3df0c802;p=xscreensaver diff --git a/po/Makefile.in.in b/po/Makefile.in.in index c82f0066..3d4b0248 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -85,6 +85,9 @@ # version of) this rule out. # +# config.status complains if "po/Makefile.in.in was not created by intltoolize". +# INTLTOOL_MAKEFILE + GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ @@ -101,7 +104,9 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ #datadir = $(prefix)/@DATADIRNAME@ -- not for xscreensaver datadir = @PO_DATADIR@ +datarootdir = @datarootdir@ localedir = $(datadir)/locale +#localedir = $(prefix)/share/locale #gnulocaledir = $(prefix)/share/locale -- not for xscreensaver gnulocaledir = $(localedir) #gettextsrcdir = $(prefix)/share/glib-2.0/gettext/po @@ -146,6 +151,7 @@ DISTFILES = $(DISTFILES_1) $(GETTEXT_PACKAGE).pot \ TARFILES = $(DISTFILES_1) $(POFILES) $(SOURCES) POTFILES = \ +# This comment gets stripped out CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ @@ -188,11 +194,11 @@ default: all all-yes: $(CATALOGS) all-no: -$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) +$(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 @@ -272,6 +278,7 @@ clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m *.gmo *.pot + rm -f stamp-it maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @@ -279,9 +286,7 @@ maintainer-clean: distclean rm -f $(GMOFILES) depend: -# fuck off. love, jwz. -#distdepend: generate_potfiles_in update-po $(DISTFILES) -distdepend:: +distdepend: generate_potfiles_in update-po $(DISTFILES) # jwz: Generates po/POTFILES.in by examining the source tree: @@ -290,11 +295,12 @@ distdepend:: generate_potfiles_in: @tmp=po.$$$$ ; \ file=POTFILES.in ; \ + echo "sleeping 3 seconds..." ;\ + sleep 3; \ ( 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.in \ driver/*.desktop.in \ hacks/config/*.xml ) | sort \ ) > $$tmp && \ @@ -320,6 +326,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 \ @@ -358,16 +367,22 @@ POTFILES: POTFILES.in && (sed -e '/^#/d' \ -e "s/^\[.*\] +//" \ -e '/^[ ]*$$/d' \ - -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ + -e "s@.*@ $$posrcprefix& \\\\@" < $@.in \ | sed -e '$$s/\\$$//') > $@-t \ && chmod a-w $@-t \ && mv $@-t $@ ) -# Please to be fucking the hell off. This breaks "make distdepend". -jwz -#Makefile: Makefile.in.in ../config.status POTFILES -# cd .. \ -# && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ -# $(SHELL) ./config.status +# jwz: depending on stamp-it breaks distclean. +Makefile: + @if test ! -f $@; then \ + rm -f stamp-it; \ + $(MAKE) stamp-it; \ + fi + +stamp-it: Makefile.in.in ../config.status POTFILES + cd .. \ + && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= \ + $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded.