diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-13 05:33:41 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-13 05:33:41 +0000 |
commit | bb97001bd6781eb65d1b3323c70aa609c0500053 (patch) | |
tree | 92ef0bb8eeae016ccec9bc690d4d027103338381 /gdb/Makefile.in | |
parent | 853571402b1d5cb69164dde0c0a9d104b4638c73 (diff) | |
download | gdb-bb97001bd6781eb65d1b3323c70aa609c0500053.tar.gz |
Only re-generate copying.c when maintainer mode.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index da0e6a25294..88795a16c2a 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -941,19 +941,12 @@ 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.txt copying.awk - awk -f $(srcdir)/copying.awk < copying.txt > copying.c +$(srcdir)/copying.c: @MAINTAINER_MODE_TRUE@ \ + $(srcdir)/COPYING $(srcdir)/copying.awk + awk -f $(srcdir)/copying.awk \ + < $(srcdir)/COPYING > $(srcdir)/copying.tmp + mv $(srcdir)/copying.tmp $(srcdir)/copying.c version.c: Makefile rm -f version.c @@ -1200,7 +1193,9 @@ complaints.o: complaints.c complaints.h $(defs_h) $(gdbcmd_h) # OBSOLETE convex-xdep.o: convex-xdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \ # OBSOLETE $(inferior_h) -copying.o: copying.c $(defs_h) $(gdbcmd_h) +# Provide explicit rule/dependency - works for more makes. +copying.o: $(srcdir)/copying.c $(defs_h) $(gdbcmd_h) + $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/copying.c core-aout.o: core-aout.c $(defs_h) $(gdbcore_h) $(value_h) $(inferior_h) |