Make sure the gccas script is executable.
[oota-llvm.git] / tools / gccas / Makefile
index b5a2886fed5f6b832cd292f0d7a542deb3230a00..14da3e718ce57b67ab08878d47f700e5efed3174 100644 (file)
@@ -12,15 +12,17 @@ include $(LEVEL)/Makefile.common
 
 install-local:: $(PROJ_bindir)/gccas
        
-$(PROJ_bindir)/gccas : gccas.sh
+$(PROJ_bindir)/gccas : gccas.sh Makefile
        $(Echo)Installing gccas shell script.
        $(Verb)sed "s#@TOOLDIR@#$(PROJ_bindir)#" $< > $@
+       $(Verb)chmod 0755 $@
 
 all-local:: $(ToolDir)/gccas
        
-$(ToolDir)/gccas : gccas.sh
+$(ToolDir)/gccas : gccas.sh Makefile
        $(Echo)Making $(ToolDir)/gccas shell script.
        $(Verb)sed "s#@TOOLDIR@#$(ToolDir)#" $< > $@
+       $(Verb)chmod 0755 $@
 
 clean-local::
        $(Verb)$(RM) -f $(ToolDir)/gccas