t-avr: Correct avr-mmcu.texi dependencies.
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 31 May 2012 15:01:03 +0000 (15:01 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Thu, 31 May 2012 15:01:03 +0000 (15:01 +0000)
* config/avr/t-avr: Correct avr-mmcu.texi dependencies.
(s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
* doc/avr-mmcu.texi (svn:eol-style): Set to native.

From-SVN: r188065

gcc/ChangeLog
gcc/config/avr/t-avr

index fb791bb53a98e51a99e79be822f25b198f5ec9f9..49bed4d767f47ee5d6a6132a7670e70560a101d4 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
+
+       * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
+       (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
+       * doc/avr-mmcu.texi (svn:eol-style): Set to native.
+       
 2012-05-31  Richard Guenther  <rguenther@suse.de>
 
        * tree-loop-distribution.c (struct partition_s): New struct,
index 20dc63a18f3a64df1127ebe0704bd98bfdb3f7d6..5da9ef2eddad498f45d87da5406cb3605a25d051 100644 (file)
@@ -47,10 +47,18 @@ gen-avr-mmcu-texi$(build_exeext): $(srcdir)/config/avr/gen-avr-mmcu-texi.c \
   $(TM_H) $(AVR_MCUS) $(srcdir)/config/avr/avr-devices.c
        $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< -o $@
 
-avr-devices.o: s-avr-mmcu-texi
+# Make sure that the -mmcu= documentation is in sync with the compiler.
+$(srcdir)/doc/avr-mmcu.texi: s-avr-mmcu-texi; @true
 
+# invoke.texi @includes avr-mmcu.texi.  Put this dependency here instead
+# of in the global Makefile so that developers of other backends are not
+# bothered with AVR stuff. 
+$(srcdir)/doc/invoke.texi: $(srcdir)/doc/avr-mmcu.texi
+
+# Ensure that device support is in sync with -mmcu= documentation.
 s-avr-mmcu-texi: gen-avr-mmcu-texi$(build_exeext)
-       $(RUN_GEN) ./$< | sed -e 's:\r::g' > avr-mmcu.texi
+       $(RUN_GEN) ./$< > tmp-avr-mmcu.texi
+       $(SHELL) $(srcdir)/../move-if-change tmp-avr-mmcu.texi avr-mmcu.texi
        @if cmp -s $(srcdir)/doc/avr-mmcu.texi avr-mmcu.texi; then \
          $(STAMP) $@;          \
        else                    \