OSDN Git Service

* Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2005 06:56:55 +0000 (06:56 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2005 06:56:55 +0000 (06:56 +0000)
instead of $<.  Don't remove ./as if it already exists.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101620 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/Makefile.in

index 00eaf5d..fb8016b 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-04  Kazu Hirata  <kazu@codesourcery.com>
+
+       * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
+       instead of $<.  Don't remove ./as if it already exists.
+
 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        PR target/21723
index ade51f7..bf2a843 100644 (file)
@@ -1206,13 +1206,17 @@ cpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \
 # can be either `sometool' (if it is a script) or `sometool$(exeext)'
 # (if it is a hard link).
 stamp-as: $(ORIGINAL_AS_FOR_TARGET)
-       @echo creating as; rm -f as; \
-       case "$<" in \
-         ./*) ;; \
+       @echo creating as; \
+       case "$(ORIGINAL_AS_FOR_TARGET)" in \
+         ./as) ;; \
          ../*) \
+            rm -f as$(exeext); \
             echo $(LN) $< as$(exeext); \
             $(LN) $< as$(exeext) || cp $< as$(exeext) ;; \
-         *) echo '#!$(SHELL)' > as; echo 'exec $< "$$@"' >> as ; \
+         *) \
+            rm -f as; \
+            echo '#!$(SHELL)' > as; \
+            echo 'exec $(ORIGINAL_AS_FOR_TARGET) "$$@"' >> as ; \
             chmod +x as ;; \
        esac
        echo timestamp > $@