Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:31:40+00:00 2026-06-10T22:31:40+00:00

I have a custom shell script to make twitter bootstrap from source and then

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:31:41+00:00Added an answer on June 10, 2026 at 10:31 pm

    EDIT:

    Based on the comments I have refactored to this

    bootstrap:
        rm -r src/bootstrap/bootstrap
        $(MAKE) -C ./src/bootstrap bootstrap
        mv -f src/bootstrap/bootstrap/css/* lib/public/css
        mv -f src/bootstrap/bootstrap/img/* lib/public/img
        mv -f src/bootstrap/bootstrap/js/* lib/public/js
    

    This duplicates the functionality of the shell script I had before (moving files for my custom project) and still uses the standard makefile that Twitter Bootstrap ships with. Much cleaner… I’m going to live the original answer below so people can see the evolution and refactor.

    OLD ANSWER

    Ok thank you guys in the comments for pointing my in the right direction. This solution works:

    bootstrap:
        cd ./src/bootstrap; \
            ./make_bootstrap.sh
    

    What happens is it executes the change directory (in a sub process so it doesn’t affect where I run make from) and then executes the custom script. It seems as if I probably shouldn’t be using something like this in a makefile since it feels ‘dirty’; perhaps a more clean way to do it would be to invoke the LESS compiler myself and mimic the makefile provided by bootstrap. I’m using this for a tiny personal project though so it does the job.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom shell script that runs each time a user logs in
I have written a custom shell script function, and put in in my .profile
I'm currently trying to make some small shell-like utility for a custom script I
If I have a custom shell script or program that I created myself or
I have custom classes that I currently instantiate within App.xaml as resources. I want
I have a custom shell program in which I have included signal.h , unistd.h
I have an auto-generated file each day that gets called by a shell script.
In my shell environment I have aliases and custom functions. When I am in
I'd like to call caspol from within a script inside a custom action in
hey there, i have written a custom control for my App so things get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.