-echo '/* This file is automatically generated. DO NOT EDIT! */' >ldemul-list.h
-echo 'extern ld_emulation_xfer_type ld_mipsidt_emulation;' >>ldemul-list.h
-echo '#define EMULATION_LIST \' >>ldemul-list.h
-echo ' &ld_mipsidt_emulation, \' >>ldemul-list.h
-echo ' 0' >>ldemul-list.h
+If "{target_canonical}" =~ /mips-idt-ecoff/
+ echo '/* This file is automatically generated. DO NOT EDIT! */' >ldemul-list.h
+ echo 'extern ld_emulation_xfer_type ld_mipsidt_emulation;' >>ldemul-list.h
+ echo '#define EMULATION_LIST \' >>ldemul-list.h
+ echo ' &ld_mipsidt_emulation, \' >>ldemul-list.h
+ echo ' 0' >>ldemul-list.h