]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Create app-tools as executable in objdir.
authorAntti Kantee <pooka@iki.fi>
Thu, 4 Feb 2016 00:38:08 +0000 (00:38 +0000)
committerAntti Kantee <pooka@iki.fi>
Thu, 4 Feb 2016 00:38:08 +0000 (00:38 +0000)
That way they can be judiciously executed from there during
a build.

app-tools/Makefile

index a76a232a485b86d64a27794d1281a16bdeb55100..82331525d1e665e2bdce12f957243fcadd163fff 100644 (file)
@@ -81,6 +81,7 @@ ${TOOLOBJ}/${2}: ${1} Makefile ${TOOLOBJ}
                -e 's#!CFLAGS!#$(BUILDRUMP_TOOL_CFLAGS)#g;'             \
                -e 's#!CXXFLAGS!#$(BUILDRUMP_TOOL_CXXFLAGS)#g;'         \
                -e 's#!LDFLAGS_BAKE!#$(LDFLAGS_BAKE)#g;'
+       chmod 755 $$@
 endef
 $(foreach file,${_FILES},$(eval $(call templ,${file}.in,${TOOLTUPLE}-${file})))
 $(foreach spec,${SPECS},$(eval $(call templ,${spec}.in,${spec})))
@@ -96,6 +97,7 @@ toolval_$1=$${$${uptool_$1}}
 ${TOOLOBJ}/$(TOOLTUPLE)-$1: ${TOOLOBJ}
        printf '#!/bin/sh\n\nexec %s "$$$${@}"\n' \
            $$(subst ${BRSOURCEDIR},${BRLIBEXECDEST},$${toolval_${1}}) > $$@
+       chmod 755 $$@
 
 BRTOOLS+= $${toolval_${1}}
 endef