bug-automake
[Top][All Lists]
Advanced

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

gettext 0.11 / automake 1.6: make dist & rm from srcdir


From: Karl Berry
Subject: gettext 0.11 / automake 1.6: make dist & rm from srcdir
Date: Tue, 12 Mar 2002 12:01:19 -0500

I was making a texinfo pretest distribution and make distcheck failed in
make update-po -> texinfo.pot-update:

rm: cannot unlink `../../po/texinfo.pot': Permission denied

This is apparently because po/Makefile.in.in is attempting to rm (and
mv) stuff under $(srcdir).  This fails with automake's make distcheck,
since it makes $(srcdir) read-only (including the directories).

I think either the $(DOMAIN).pot-update target in po/Makefile.in.in
needs to avoid doing this, or it shouldn't be called at all.  The kludge
patch below (I needed to get my pretest out) does the former.

Thanks,
karl

P.S. I doubt Makefile.in.in should really be copyright personally by
Ulrich.  That's an awfully old email address for him, too.

*** /usr/local/gnu/share/gettext/po/ORIG/Makefile.in.in Wed Feb 13 09:27:49 2002
--- /usr/local/gnu/share/gettext/po/Makefile.in.in      Tue Mar 12 08:29:05 2002
***************
*** 81,89 ****
          --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
          --files-from=$(srcdir)/POTFILES.in \
          --copyright-holder='$(COPYRIGHT_HOLDER)' \
!       && test ! -f $(DOMAIN).po \
!          || ( rm -f $(srcdir)/$(DOMAIN).pot \
!               && mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot )
  
  $(srcdir)/$(DOMAIN).pot:
        $(MAKE) $(DOMAIN).pot-update
--- 81,90 ----
          --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
          --files-from=$(srcdir)/POTFILES.in \
          --copyright-holder='$(COPYRIGHT_HOLDER)' \
!       && true
! #     && test ! -f $(DOMAIN).po \
! #        || ( rm -f $(srcdir)/$(DOMAIN).pot \
! #             && mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot )
  
  $(srcdir)/$(DOMAIN).pot:
        $(MAKE) $(DOMAIN).pot-update



reply via email to

[Prev in Thread] Current Thread [Next in Thread]