This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH] COPYING and copying.c
> > +# 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
>
> This bit won't work when building in a separate directory.
> I'm also not sure about the ``ln'' command. configure.in contains stuff
> to set ``LN_S''.
Then how about the following changes? They seem to work for me.
2000-03-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.
(LN_S): Define.
--- gdb/Makefile.i~0 Tue Feb 22 10:52:06 2000
+++ gdb/Makefile.in Fri Mar 3 13:52:30 2000
@@ -59,6 +59,7 @@
RANLIB = @RANLIB@
DLLTOOL = @DLLTOOL@
WINDRES = @WINDRES@
+LN_S = @LN_S@
# If the user configured GDB to include the TUI, the name of the tui
# library goes here.
@@ -911,9 +912,19 @@
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