I have a custom shell script to make twitter bootstrap from source and then move the files to my node.js app's /lib file:
rm -r bootstrap
make bootstrap
mv -f bootstrap/css/* ../../lib/public/css
mv -f bootstrap/img/* ../../lib/public/img
mv -f bootstrap/js/* ../../lib/public/js
Running this from the shell works just fine using ./make_bootstrap.sh
Now I've created a Makefile for my full app (mainly compiling coffeescript and easy test initialization) and want to have a command that executes this custom shell script to build bootstrap. Here is my makefile
REPORTER = spec
all: build
build:
@./node_modules/coffee-script/bin/coffee \
-c \
-o lib src
bootstrap:
@./src/bootstrap \
./make_bootstrap.sh
clean:
rm -rf lib
mkdir lib
watch:
@./node_modules/coffee-script/bin/coffee \
-o lib \
-cw src
test:
@./node_modules/mocha/bin/mocha \
--reporter $(REPORTER) \
test/*.coffee
.PHONY: build bootstrap clean watch test
with the relevant command being 'make bootstrap'. However when I run make bootstrap from the command line all I get is this error:
make: ./src/bootstrap: Permission denied
make: *** [bootstrap] Error 1
Originally I had assumed that it was a permission error but even setting all permissions on files (chmod 777) results in nothing. Files I have given full permissions at this point include the root Makefile, my custom shell script in the bootstrap folder and the makefile within the bootstrap folder itself.