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] COPYING and copying.c



The following is one of the gotchas with case-insensitive file names.
It got me puzzled for about 10 seconds when I saw Make trying to
compile COPYING.c into COPYING...

(It turns out Robert Hoehne already bumped into this while working on
GDB 4.18, but he ``handled'' it by commenting out the whole rule...
Ts, ts, ts ;-).

I hope this solution is acceptable.  If not, please tell me how to
change it.

2000-02-27  Eli Zaretskii  <eliz@is.elta.co.il>

	* Makefile.in (copying.c): Depend on copying.txt, not COPYING.
	(copying.txt): New target, a link to COPYING.

--- gdb/Makefile.i~0	Tue Feb 22 10:52:06 2000
+++ gdb/Makefile.in	Sat Feb 26 19:31:54 2000
@@ -911,9 +911,14 @@
 doc/gdb.info:
 	cd doc; $(MAKE) gdb.info $(FLAGS_TO_PASS)
 
+# 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 || ln COPYING copying.txt
+
 # Make copying.c from COPYING
-copying.c: COPYING copying.awk
-	awk -f $(srcdir)/copying.awk < $(srcdir)/COPYING > copying.c
+copying.c: copying.txt copying.awk
+	awk -f $(srcdir)/copying.awk < $(srcdir)/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]