* Makefile.in (copying.c): Depend on copying.txt, not COPYING.
authorEli Zaretskii <eliz@gnu.org>
Mon, 3 Apr 2000 15:12:59 +0000 (15:12 +0000)
committerEli Zaretskii <eliz@gnu.org>
Mon, 3 Apr 2000 15:12:59 +0000 (15:12 +0000)
(copying.txt): New target, a link to COPYING.

gdb/ChangeLog
gdb/Makefile.in

index 9ef0d07..b5adb55 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-03  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.
+
 Mon Apr  3 18:20:03 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * TODO: Update.
index d036ce1..0fbab20 100644 (file)
@@ -942,9 +942,19 @@ doc/gdb.dvi:
 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 || \
+         (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 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