ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-5.01.tar.gz
[xscreensaver] / po / Makefile.in.in
index 3680945fd31cb5bce65185231ed0382d746d8b5d..c2e15de521301d4be9c102e04268f38ab37c7578 100644 (file)
@@ -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,13 +192,17 @@ 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
 
 install: install-exec install-data
 install-exec:
+install-program:
+install-man:
+install-strip:
+tags:
 install-data: install-data-@USE_NLS@
 install-data-no: all
 install-data-yes: all
@@ -253,6 +258,9 @@ uninstall:
          done; \
        done
 
+uninstall-program:
+uninstall-man:
+
 check: all
 
 dvi info tags TAGS ID:
@@ -271,7 +279,11 @@ maintainer-clean: distclean
        @echo "it deletes files that may require special tools to rebuild."
        rm -f $(GMOFILES)
 
-distdepend: generate_potfiles_in update-po $(DISTFILES)
+depend:
+# 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.
@@ -280,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 &&                          \
@@ -309,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 \