This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Use $(SHELL) when running move-if-change


I'm checking in this patch to bfd/doc/Makefile.am to use $(SHELL) when
running move-if-change.  $(SHELL) should always be used with
move-if-change or indeed any shell script.  I suppose this one went
unfixed for so long because it is only run when recreating info files,
which normally does not need to be done when using a released version.

Ian


2004-12-20  Ian Lance Taylor  <ian@c2microsystems.com>

	* Makefile.am: Use $(SHELL) whenever we run move-if-change.
	* Makefile.in: Rebuild.


Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/bfd/doc/Makefile.am,v
retrieving revision 1.12
diff -u -r1.12 Makefile.am
--- Makefile.am	19 Sep 2004 22:32:12 -0000	1.12
+++ Makefile.am	20 Dec 2004 21:20:30 -0000
@@ -76,19 +76,19 @@
 
 s-aoutx: $(MKDOC) $(srcdir)/../aoutx.h $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../aoutx.h >aoutx.tmp
-	$(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
+	$(SHELL) $(srcdir)/../../move-if-change aoutx.tmp aoutx.texi
 	touch s-aoutx
 aoutx.texi: s-aoutx
 
 s-archive: $(MKDOC) $(srcdir)/../archive.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../archive.c >archive.tmp
-	$(srcdir)/../../move-if-change archive.tmp archive.texi
+	$(SHELL) $(srcdir)/../../move-if-change archive.tmp archive.texi
 	touch s-archive
 archive.texi: s-archive
 
 s-archures: $(MKDOC) $(srcdir)/../archures.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../archures.c >archures.tmp
-	$(srcdir)/../../move-if-change archures.tmp archures.texi
+	$(SHELL) $(srcdir)/../../move-if-change archures.tmp archures.texi
 	touch s-archures
 archures.texi: s-archures
 
@@ -96,115 +96,115 @@
 # bfd.texinfo on an 8.3 filesystem.
 s-bfd: $(MKDOC) $(srcdir)/../bfd.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfd.c >bfd.tmp
-	$(srcdir)/../../move-if-change bfd.tmp bfdt.texi
+	$(SHELL) $(srcdir)/../../move-if-change bfd.tmp bfdt.texi
 	touch s-bfd
 bfdt.texi: s-bfd
 
 s-cache: $(MKDOC) $(srcdir)/../cache.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../cache.c >cache.tmp
-	$(srcdir)/../../move-if-change cache.tmp cache.texi
+	$(SHELL) $(srcdir)/../../move-if-change cache.tmp cache.texi
 	touch s-cache
 cache.texi: s-cache
 
 s-coffcode: $(MKDOC) $(srcdir)/../coffcode.h $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../coffcode.h >coffcode.tmp
-	$(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
+	$(SHELL) $(srcdir)/../../move-if-change coffcode.tmp coffcode.texi
 	touch s-coffcode
 coffcode.texi: s-coffcode
 
 s-core: $(MKDOC) $(srcdir)/../corefile.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../corefile.c >core.tmp
-	$(srcdir)/../../move-if-change core.tmp core.texi
+	$(SHELL) $(srcdir)/../../move-if-change core.tmp core.texi
 	touch s-core
 core.texi: s-core
 
 s-elf: $(MKDOC) $(srcdir)/../elf.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp
-	$(srcdir)/../../move-if-change elf.tmp elf.texi
+	$(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi
 	touch s-elf
 elf.texi: s-elf
 
 s-elfcode: $(MKDOC) $(srcdir)/../elfcode.h $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elfcode.h >elfcode.tmp
-	$(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
+	$(SHELL) $(srcdir)/../../move-if-change elfcode.tmp elfcode.texi
 	touch s-elfcode
 elfcode.texi: s-elfcode
 
 s-mmo: $(MKDOC) $(srcdir)/../mmo.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../mmo.c >mmo.tmp
-	$(srcdir)/../../move-if-change mmo.tmp mmo.texi
+	$(SHELL) $(srcdir)/../../move-if-change mmo.tmp mmo.texi
 	touch s-mmo
 mmo.texi: s-mmo
 
 s-format: $(MKDOC) $(srcdir)/../format.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../format.c >format.tmp
-	$(srcdir)/../../move-if-change format.tmp format.texi
+	$(SHELL) $(srcdir)/../../move-if-change format.tmp format.texi
 	touch s-format
 format.texi: s-format
 
 s-libbfd: $(MKDOC) $(srcdir)/../libbfd.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../libbfd.c >libbfd.tmp
-	$(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
+	$(SHELL) $(srcdir)/../../move-if-change libbfd.tmp libbfd.texi
 	touch s-libbfd
 libbfd.texi: s-libbfd
 
 s-bfdio: $(MKDOC) $(srcdir)/../bfdio.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdio.c >bfdio.tmp
-	$(srcdir)/../../move-if-change bfdio.tmp bfdio.texi
+	$(SHELL) $(srcdir)/../../move-if-change bfdio.tmp bfdio.texi
 	touch s-bfdio
 bfdio.texi: s-bfdio
 
 s-bfdwin: $(MKDOC) $(srcdir)/../bfdwin.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str < $(srcdir)/../bfdwin.c >bfdwin.tmp
-	$(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi
+	$(SHELL) $(srcdir)/../../move-if-change bfdwin.tmp bfdwin.texi
 	touch s-bfdwin
 bfdwin.texi: s-bfdwin
 
 s-opncls: $(MKDOC) $(srcdir)/../opncls.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str  <$(srcdir)/../opncls.c >opncls.tmp
-	$(srcdir)/../../move-if-change opncls.tmp opncls.texi
+	$(SHELL) $(srcdir)/../../move-if-change opncls.tmp opncls.texi
 	touch s-opncls
 opncls.texi: s-opncls
 
 s-reloc: $(MKDOC) $(srcdir)/../reloc.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../reloc.c >reloc.tmp
-	$(srcdir)/../../move-if-change reloc.tmp reloc.texi
+	$(SHELL) $(srcdir)/../../move-if-change reloc.tmp reloc.texi
 	touch s-reloc
 reloc.texi: s-reloc
 
 s-section: $(MKDOC) $(srcdir)/../section.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../section.c >section.tmp
-	$(srcdir)/../../move-if-change section.tmp section.texi
+	$(SHELL) $(srcdir)/../../move-if-change section.tmp section.texi
 	touch s-section
 section.texi: s-section
 
 s-syms: $(MKDOC) $(srcdir)/../syms.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../syms.c >syms.tmp
-	$(srcdir)/../../move-if-change syms.tmp syms.texi
+	$(SHELL) $(srcdir)/../../move-if-change syms.tmp syms.texi
 	touch s-syms
 syms.texi: s-syms
 
 s-targets: $(MKDOC) $(srcdir)/../targets.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../targets.c >targets.tmp
-	$(srcdir)/../../move-if-change targets.tmp targets.texi
+	$(SHELL) $(srcdir)/../../move-if-change targets.tmp targets.texi
 	touch s-targets
 targets.texi: s-targets
 
 s-init: $(MKDOC) $(srcdir)/../init.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../init.c >init.tmp
-	$(srcdir)/../../move-if-change init.tmp init.texi
+	$(SHELL) $(srcdir)/../../move-if-change init.tmp init.texi
 	touch s-init
 init.texi: s-init
 
 s-hash: $(MKDOC) $(srcdir)/../hash.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../hash.c >hash.tmp
-	$(srcdir)/../../move-if-change hash.tmp hash.texi
+	$(SHELL) $(srcdir)/../../move-if-change hash.tmp hash.texi
 	touch s-hash
 hash.texi: s-hash
 
 s-linker: $(MKDOC) $(srcdir)/../linker.c $(srcdir)/doc.str
 	./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../linker.c >linker.tmp
-	$(srcdir)/../../move-if-change linker.tmp linker.texi
+	$(SHELL) $(srcdir)/../../move-if-change linker.tmp linker.texi
 	touch s-linker
 linker.texi: s-linker
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]