[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Question about packing "swhoisd"



Am 2006-09-07 11:30:08, schrieb Thibaut Paumard:

> > configure: WARNING: `missing' script is too old or missing
> 
> So, is there a /usr/src/swhoisd-3.0.5/missing file?

Yes its there, but rather old (2000-07-12) and the package
itself is from 2001 with an update from 2004-01-03.

> > I do not find anythin about a "co" command in ANY files.
> > It seems it must be cp but I do not find the line where it is.  :-/
> 
> I think it really is co, from the RCS package. I guess you should
> build-depend on it.

Added and it works now, but encountered a NEW problem while entering
po/ because it does not make the mo files (I have added my own msgfmt
loop to build it, but this should not be the way...)

Here the log of my build:

----[ '/usr/src/swhoisd_3.0.5-1_i386.buildlog' ]----------------------
dpkg-buildpackage: source package is swhoisd
dpkg-buildpackage: source version is 3.0.5-1
dpkg-buildpackage: source maintainer is Michelle Konzack <linux4michelle@freenet.de>
dpkg-buildpackage: host architecture is i386

################  clean:  ##############################################

 fakeroot debian/rules clean
dh_testdir
dh_clean
if test -f ./config.status ; then \
  make distclean-recursive ; \
fi
rm -v -f debian/swhoisd.init
rm -v -f po/*.mo

########################################################################

 dpkg-source -b swhoisd-3.0.5
dpkg-source: building swhoisd using existing swhoisd_3.0.5.orig.tar.gz
dpkg-source: building swhoisd in swhoisd_3.0.5-1.diff.gz
dpkg-source: building swhoisd in swhoisd_3.0.5-1.dsc

################  build:  ##############################################

 debian/rules build

################  do_cfg:  #############################################

dh_testdir
./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
/usr/src/swhoisd-3.0.5/missing: Unknown `--run' option
Try `/usr/src/swhoisd-3.0.5/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for ANSI C header files... yes
checking for library containing gettext... none required
checking for pthread_create in -lpthread... yes
checking for library containing gethostent... none required
checking for library containing socket... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether byte ordering is bigendian... no
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for getcwd... yes
checking for getwd... yes
checking for putenv... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for getpeername... yes
checking for getaddrinfo... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for localtime_r... yes
checking for getpwnam_r... yes
checking for getgrnam_r... yes
checking for snprintf... yes
checking for strlcpy... no
checking for g_strlcpy in -lglib... no
setting build environment for i686linux-gnu
checking for nobody uid... 65534
checking for nogroup gid... 65534
configure: creating ./config.status
config.status: creating doc/Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating sun/Makefile
config.status: creating redhat/swhoisd.spec
config.status: creating intl/Makefile
config.status: creating Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands

################  build:  ##############################################

dh_testdir
make
make[1]: Entering directory `/usr/src/swhoisd-3.0.5'
cd . && \
  automake-1.6 --gnu  Makefile
cd . && autoconf
/bin/sh ./config.status --recheck
running /bin/sh ./configure   --no-create --no-recursion
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
/usr/src/swhoisd-3.0.5/missing: Unknown `--run' option
Try `/usr/src/swhoisd-3.0.5/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for ANSI C header files... yes
checking for library containing gettext... none required
checking for pthread_create in -lpthread... yes
checking for library containing gethostent... none required
checking for library containing socket... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for pid_t... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether byte ordering is bigendian... no
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for getcwd... yes
checking for getwd... yes
checking for putenv... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for getpeername... yes
checking for getaddrinfo... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for localtime_r... yes
checking for getpwnam_r... yes
checking for getgrnam_r... yes
checking for snprintf... yes
checking for strlcpy... no
checking for g_strlcpy in -lglib... no
setting build environment for i686linux-gnu
checking for nobody uid... 65534
checking for nogroup gid... 65534
configure: creating ./config.status
cd . && /bin/sh ./config.status Makefile 
config.status: creating Makefile
make[1]: Leaving directory `/usr/src/swhoisd-3.0.5'
make[1]: Entering directory `/usr/src/swhoisd-3.0.5'
Making all in doc
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/doc'
cd .. && /bin/sh ./config.status doc/Makefile 
config.status: creating doc/Makefile
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/doc'
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/doc'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/doc'
Making all in intl
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/intl'
cd .. \
  && CONFIG_FILES=intl/Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating intl/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/intl'
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/intl'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/intl'
Making all in src
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/src'
cd .. && \
  automake-1.6 --gnu  src/Makefile
cd .. && /bin/sh ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/src'
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/src'
cd .. && /bin/sh ./config.status src/config.h
config.status: creating src/config.h
config.status: src/config.h is unchanged
make  all-am
make[3]: Entering directory `/usr/src/swhoisd-3.0.5/src'
source='rfc1431.c' object='rfc1431.o' libtool=no \
depfile='.deps/rfc1431.Po' tmpdepfile='.deps/rfc1431.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\"    -DMYUID=65534 -DMYGID=65534 -c `test -f 'rfc1431.c' || echo './'`rfc1431.c
source='do_whois.c' object='do_whois.o' libtool=no \
depfile='.deps/do_whois.Po' tmpdepfile='.deps/do_whois.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\"    -DMYUID=65534 -DMYGID=65534 -c `test -f 'do_whois.c' || echo './'`do_whois.c
source='sysutils.c' object='sysutils.o' libtool=no \
depfile='.deps/sysutils.Po' tmpdepfile='.deps/sysutils.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\"    -DMYUID=65534 -DMYGID=65534 -c `test -f 'sysutils.c' || echo './'`sysutils.c
source='main.c' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\"    -DMYUID=65534 -DMYGID=65534 -c `test -f 'main.c' || echo './'`main.c
source='snprintf.c' object='snprintf.o' libtool=no \
depfile='.deps/snprintf.Po' tmpdepfile='.deps/snprintf.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\"    -DMYUID=65534 -DMYGID=65534 -c `test -f 'snprintf.c' || echo './'`snprintf.c
source='strlcpy.c' object='strlcpy.o' libtool=no \
depfile='.deps/strlcpy.Po' tmpdepfile='.deps/strlcpy.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\"    -DMYUID=65534 -DMYGID=65534 -c `test -f 'strlcpy.c' || echo './'`strlcpy.c
gcc  -DMYUID=65534 -DMYGID=65534   -o in.swhoisd strlcpy.o rfc1431.o do_whois.o sysutils.o main.o snprintf.o  -lpthread 
co  RCS/swhoisd,v swhoisd
RCS/swhoisd,v  -->  swhoisd
revision 1.2
done
make[3]: Leaving directory `/usr/src/swhoisd-3.0.5/src'
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/src'
Making all in po
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/po'
( if test 'x.' != 'x.'; then \
    posrcprefix='../'; \
  else \
    posrcprefix="../"; \
  fi; \
  rm -f POTFILES-t POTFILES \
    && (sed -e '/^#/d' -e '/^[ 	]*$/d' \
	    -e "s@.*@	$posrcprefix& \\\\@" < ./POTFILES.in \
	| sed -e '$s/\\$//') > POTFILES-t \
    && chmod a-w POTFILES-t \
    && mv POTFILES-t POTFILES )
cd .. \
  && CONFIG_FILES=po/Makefile.in CONFIG_HEADERS= \
       /bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: executing depfiles commands
rm -f cat-id-tbl.tmp
sed -f ../intl/po2tbl.sed ./swhoisd.pot \
| sed -e "s/@PACKAGE NAME@/swhoisd/" > cat-id-tbl.tmp
if cmp -s cat-id-tbl.tmp ./cat-id-tbl.c; then \
  rm cat-id-tbl.tmp; \
else \
  echo cat-id-tbl.c changed; \
  rm -f ./cat-id-tbl.c; \
  mv cat-id-tbl.tmp ./cat-id-tbl.c; \
fi
cd . && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/po'
make[2]: Entering directory `/usr/src/swhoisd-3.0.5'
make[2]: Für das Ziel »all-am« ist nichts zu tun.
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5'
make[1]: Leaving directory `/usr/src/swhoisd-3.0.5'
cp src/swhoisd debian/swhoisd.init

################  binary:  #############################################

 fakeroot debian/rules binary

################  binary-arch:  ########################################

################  build-mo:  ###########################################

################  $(PO_LANG) => de:  ###################################

dh_testdir
msgfmt -o po/de.mo po/de.po

################  $(PO_LANG) => es:  ###################################

dh_testdir
msgfmt -o po/es.mo po/es.po

################  install:  ############################################

dh_testdir
dh_installdirs  etc/bash_completion.d \
		etc/init.d \
		usr/lib/swhoisd \
                usr/sbin \
		usr/share/doc/swhoisd
for CC in de es ; do \
  mkdir -v -p debian/swhoisd/usr/share/locale/$CC/LC_MESSAGES ; \
done
mkdir: Verzeichnis ,,debian/swhoisd/usr/share/locale" angelegt
mkdir: Verzeichnis ,,debian/swhoisd/usr/share/locale/de" angelegt
mkdir: Verzeichnis ,,debian/swhoisd/usr/share/locale/de/LC_MESSAGES" angelegt
mkdir: Verzeichnis ,,debian/swhoisd/usr/share/locale/es" angelegt
mkdir: Verzeichnis ,,debian/swhoisd/usr/share/locale/es/LC_MESSAGES" angelegt

################  binary-arch:  ########################################

dh_testdir
dh_installchangelogs
dh_installdocs
dh_installman
dh_install
for CC in de es ; do \
  mv -v -f po/$CC.mo debian/swhoisd/usr/share/locale/$CC/LC_MESSAGES/swhoisd.mo ; \
done
,,po/de.mo" -> ,,debian/swhoisd/usr/share/locale/de/LC_MESSAGES/swhoisd.mo"
,,po/es.mo" -> ,,debian/swhoisd/usr/share/locale/es/LC_MESSAGES/swhoisd.mo"
cp debian/swhoisd.bash_completion debian/swhoisd/etc/bash_completion.d/swhoisd
dh_installinit
dh_installexamples
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: baue Paket »swhoisd« in »../swhoisd_3.0.5-1_i386.deb«.
 signfile swhoisd_3.0.5-1.dsc

 dpkg-genchanges
dpkg-genchanges: including full source code in upload
 signfile swhoisd_3.0.5-1_i386.changes

################  clean:  ##############################################

 fakeroot debian/rules clean
dh_testdir
dh_clean
if test -f ./config.status ; then \
  make distclean-recursive ; \
fi
make[1]: Entering directory `/usr/src/swhoisd-3.0.5'
Making distclean in po
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/po'
cd .. \
  && CONFIG_FILES=po/Makefile.in CONFIG_HEADERS= \
       /bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: executing depfiles commands
rm -f core core.* *.pox swhoisd.po *.old.po cat-id-tbl.tmp
rm -fr *.o
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/po'
Making distclean in src
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/src'
test -z "in.swhoisd" || rm -f in.swhoisd
test -z "in.swhoisd" || rm -f in.swhoisd
rm -f *.o core *.core
rm -f *.tab.c
rm -rf ./.deps
rm -f Makefile 
rm -f config.h stamp-h1
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/src'
Making distclean in intl
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/intl'
rm -f *.a *.o *.lo core core.*
rm -f Makefile ID TAGS po2msg.sed po2tbl.sed
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/intl'
Making distclean in doc
make[2]: Entering directory `/usr/src/swhoisd-3.0.5/doc'
rm -f Makefile 
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5/doc'
Making distclean in .
make[2]: Entering directory `/usr/src/swhoisd-3.0.5'
rm -f Makefile sun/Makefile redhat/swhoisd.spec intl/Makefile
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
make[2]: Leaving directory `/usr/src/swhoisd-3.0.5'
make[1]: Leaving directory `/usr/src/swhoisd-3.0.5'
rm -v -f debian/swhoisd.init
,,debian/swhoisd.init" entfernt
rm -v -f po/*.mo

########################################################################

dpkg-buildpackage: full upload (original source is included)
----------------------------------------------------------------------

and here the Makefile from po/

----[ '/usr/src/swhoisd-3.0.5/po/Makefile' ]--------------------------
# Generated automatically from Makefile.in.in by configure.
# Makefile for program source directory in GNU NLS utilities package.
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
#
# This file file be copied and used freely without restrictions.  It can
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.

PACKAGE = swhoisd
VERSION = 3.0

SHELL = /bin/sh


srcdir = .
top_srcdir = ..

prefix = /usr
exec_prefix = ${prefix}
datadir = $(prefix)/share
localedir = $(datadir)/locale
gnulocaledir = $(prefix)/share/locale
gettextsrcdir = $(prefix)/share/gettext/po
subdir = po

DESTDIR =

INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
MKINSTALLDIRS = $(top_srcdir)/./mkinstalldirs

CC = gcc
GENCAT = 
GMSGFMT = PATH=../src:$$PATH /usr/bin/msgfmt
MSGFMT = /usr/bin/msgfmt
XGETTEXT = PATH=../src:$$PATH /usr/bin/xgettext
MSGMERGE = PATH=../src:$$PATH msgmerge

DEFS = -DHAVE_CONFIG_H
CFLAGS =  -DMYUID=99 -DMYGID=98
CPPFLAGS = 

INCLUDES = -I.. -I$(top_srcdir)/intl

COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)

SOURCES = cat-id-tbl.c
POFILES = 
GMOFILES = 
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)

POTFILES = \
	../src/do_whois.c \
	../src/main.c \
	../src/rfc1431.c \
	../src/sysutils.c

CATALOGS = 
CATOBJEXT = .gmo
INSTOBJEXT = .mo

.SUFFIXES:
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat

.c.o:
	$(COMPILE) $<

.po.pox:
	$(MAKE) $(PACKAGE).pot
	$(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox

.po.mo:
	$(MSGFMT) -o $@ $<

.po.gmo:
	file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
	  && rm -f $$file && $(GMSGFMT) -o $$file $<

.po.cat:
	sed -f ../intl/po2msg.sed < $< > $*.msg \
	  && rm -f $@ && $(GENCAT) $@ $*.msg


all: all-yes

all-yes: cat-id-tbl.c $(CATALOGS)
all-no:

$(srcdir)/$(PACKAGE).pot: $(POTFILES)
	$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
	  --add-comments --keyword=_ --keyword=N_ \
	  --files-from=$(srcdir)/POTFILES.in \
	&& test ! -f $(PACKAGE).po \
	   || ( rm -f $(srcdir)/$(PACKAGE).pot \
		&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )

$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
	rm -f cat-id-tbl.tmp
	sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
		| sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
	if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
	  rm cat-id-tbl.tmp; \
	else \
	  echo cat-id-tbl.c changed; \
	  rm -f $(srcdir)/cat-id-tbl.c; \
	  mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
	fi
	cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id


install: install-exec install-data
install-exec:
install-data: install-data-yes
install-data-no: all
install-data-yes: all
	if test -r "$(MKINSTALLDIRS)"; then \
	  $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
	else \
	  $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
	fi
	@catalogs='$(CATALOGS)'; \
	for cat in $$catalogs; do \
	  cat=`basename $$cat`; \
	  case "$$cat" in \
	    *.gmo) destdir=$(DESTDIR)$(gnulocaledir);; \
	    *)     destdir=$(DESTDIR)$(localedir);; \
	  esac; \
	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
	  dir=$$destdir/$$lang/LC_MESSAGES; \
	  if test -r "$(MKINSTALLDIRS)"; then \
	    $(MKINSTALLDIRS) $$dir; \
	  else \
	    $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
	  fi; \
	  if test -r $$cat; then \
	    $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
	    echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
	  else \
	    $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
	    echo "installing $(srcdir)/$$cat as" \
		 "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
	  fi; \
	  if test -r $$cat.m; then \
	    $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
	    echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
	  else \
	    if test -r $(srcdir)/$$cat.m ; then \
	      $(INSTALL_DATA) $(srcdir)/$$cat.m \
		$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
	      echo "installing $(srcdir)/$$cat as" \
		   "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
	    else \
	      true; \
	    fi; \
	  fi; \
	done
	if test "$(PACKAGE)" = "gettext"; then \
	  if test -r "$(MKINSTALLDIRS)"; then \
	    $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
	  else \
	    $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
	  fi; \
	  $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
			  $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
	else \
	  : ; \
	fi

# Define this as empty until I found a useful application.
installcheck:

uninstall:
	catalogs='$(CATALOGS)'; \
	for cat in $$catalogs; do \
	  cat=`basename $$cat`; \
	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
	  rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
	  rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
	  rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
	  rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
	done
	rm -f $(DESTDIR)$(gettextsrcdir)/po-Makefile.in.in

check: all

cat-id-tbl.o: ../intl/libgettext.h

dvi info tags TAGS ID:

mostlyclean:
	rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp
	rm -fr *.o

clean: mostlyclean

distclean: clean
	rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m

maintainer-clean: distclean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."
	rm -f $(GMOFILES)

distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir: update-po $(DISTFILES)
	dists="$(DISTFILES)"; \
	for file in $$dists; do \
	  ln $(srcdir)/$$file $(distdir) 2> /dev/null \
	    || cp -p $(srcdir)/$$file $(distdir); \
	done

update-po: Makefile
	$(MAKE) $(PACKAGE).pot
	PATH=`pwd`/../src:$$PATH; \
	cd $(srcdir); \
	catalogs='$(CATALOGS)'; \
	for cat in $$catalogs; do \
	  cat=`basename $$cat`; \
	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
	  mv $$lang.po $$lang.old.po; \
	  echo "$$lang:"; \
	  if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
	    rm -f $$lang.old.po; \
	  else \
	    echo "msgmerge for $$cat failed!"; \
	    rm -f $$lang.po; \
	    mv $$lang.old.po $$lang.po; \
	  fi; \
	done

POTFILES: POTFILES.in
	( if test 'x$(srcdir)' != 'x.'; then \
	    posrcprefix='$(top_srcdir)/'; \
	  else \
	    posrcprefix="../"; \
	  fi; \
	  rm -f $@-t $@ \
	    && (sed -e '/^#/d' -e '/^[ 	]*$$/d' \
		    -e "s@.*@	$$posrcprefix& \\\\@" < $(srcdir)/$@.in \
		| sed -e '$$s/\\$$//') > $@-t \
	    && chmod a-w $@-t \
	    && mv $@-t $@ )

Makefile: Makefile.in.in ../config.status POTFILES
	cd .. \
	  && CONFIG_FILES=$(subdir)/$@.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.
.NOEXPORT:

----------------------------------------------------------------------

The target ".po.mo:" is never called.

And last not least I have a problem with the "clean" and "distclean"
targets, which do not realy cleanup the source tree.  The are always
the config.log, config.status Makefile and others there.

(Now I have tried ALL *clean* methods and some of them have REALY
cleaned my sourcetree - non-usable  :-/ )

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



Reply to: