This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH/RFA : copying.c & copying.txt



Do you already know that Eli's recent copying.txt change causes build failure
for gdb ?

The Makefile contains :

    # When DJGPP Make runs on MS-DOS, it downcases all file names, so
    # it doesn't find COPYING, and wants to make it...
    copying.txt:
	    test -f copying.txt || \
	      (test "$$LN_S" = "ln -s" && \
		ln -s $(srcdir)/COPYING copying.txt;) || \
	      cp -p $(srcdir)/COPYING copying.txt 2>/dev/null || \
	      ln $(srcdir)/COPYING copying.txt 2>/dev/null || \
	      cp $(srcdir)/COPYING copying.txt

    # Make copying.c from COPYING
    copying.c: copying.txt copying.awk
	    awk -f $(srcdir)/copying.awk < $(srcdir)/copying.txt > copying.c

We create copying.txt in the current directory, but we use the one in $(srcdir).
That can not work when building in a separate directory.

The patch below fixes that. OK to commit ?

Philippe De Muyter  <phdm@macqel.be>

	* Makefile.in (copying.c): Build from `copying.txt', not
	`$(srcdir)/copying.txt'.

Index: gdb/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.25
diff -u -p -r1.25 Makefile.in
--- Makefile.in	2000/04/09 14:37:28	1.25
+++ Makefile.in	2000/04/10 10:14:38
@@ -954,7 +954,7 @@ copying.txt:
 
 # Make copying.c from COPYING
 copying.c: copying.txt copying.awk
-	awk -f $(srcdir)/copying.awk < $(srcdir)/copying.txt > copying.c
+	awk -f $(srcdir)/copying.awk < copying.txt > copying.c
 
 version.c: Makefile
 	rm -f version.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]