bug-coreutils
[Top][All Lists]
Advanced

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

[patch] VPATH-style build of CVS coreutils (generated false.c)


From: James Youngman
Subject: [patch] VPATH-style build of CVS coreutils (generated false.c)
Date: Sun, 17 Jul 2005 11:04:42 +0100
User-agent: Mutt/1.5.9i

Hello,

I noticed that the current coreutils CVS code doesn't build
VPATH-style on muy development box.  This turns out to be because
$(top_srcdir)/src/true.c is used to generate
$(top_builddir)/src/false.c, but the Makefile in $(top_builddir)/po
expects to find false.c at $(top_srcdir)/src/false.c.

I couldn't find an elegant patch for this, partly because I'm
unsophisticated when it comes to the workings of the "po"
subdirectory.  So, I have come up with this horrible patch which does
resolve the problem but is, frankly, offensive to the eye (hence no
ChangeLog entry):

Index: Makevars
===================================================================
RCS file: /cvsroot/coreutils/coreutils/po/Makevars,v
retrieving revision 1.4
diff -u -r1.4 Makevars
--- Makevars    22 Sep 2003 18:58:30 -0000      1.4
+++ Makevars    17 Jul 2005 09:52:48 -0000
@@ -39,3 +39,8 @@
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES = LC_TIME
+
+defaulttarget: all
+
+$(top_srcdir)/src/false.c: ../src/false.c
+       /bin/cp ../src/false.c $(top_srcdir)/src/false.c





reply via email to

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