Commit e21ba931 by Kazu Hirata Committed by Kazu Hirata

Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET) instead of $<.

	* Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
	instead of $<.  Don't remove ./as if it already exists.

From-SVN: r101620
parent 9bae2797
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> 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/21723 PR target/21723
......
...@@ -1206,13 +1206,17 @@ cpp$(exeext): gcc.o cppspec.o version.o intl.o prefix.o \ ...@@ -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)' # can be either `sometool' (if it is a script) or `sometool$(exeext)'
# (if it is a hard link). # (if it is a hard link).
stamp-as: $(ORIGINAL_AS_FOR_TARGET) stamp-as: $(ORIGINAL_AS_FOR_TARGET)
@echo creating as; rm -f as; \ @echo creating as; \
case "$<" in \ case "$(ORIGINAL_AS_FOR_TARGET)" in \
./*) ;; \ ./as) ;; \
../*) \ ../*) \
rm -f as$(exeext); \
echo $(LN) $< as$(exeext); \ echo $(LN) $< as$(exeext); \
$(LN) $< as$(exeext) || cp $< 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 ;; \ chmod +x as ;; \
esac esac
echo timestamp > $@ echo timestamp > $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment