twitter bootstrap make from source

后端 未结 5 1113
醉酒成梦
醉酒成梦 2020-12-15 10:51

So I am trying to \"build\" twitter bootstrap from source git://github.com/twitter/bootstrap.git and I git clone it to my local machine.

Obviously, on my local machi

5条回答
  •  鱼传尺愫
    2020-12-15 11:23

    I have gnuwin32 installed and on my path, and I've npm install-ed uglifyjs, recess, and jshint. I then made the following additions to the top of the Makefile:

    SHELL=c:/windows/system32/cmd.exe
    MKDIR=mkdir.exe -p
    UGLIFYJS=uglifyjs
    RECESS=recess
    JSHINT=jshint
    

    The first line (SHELL=) fixes this problem:

    w:\github\bootstrap>make bootstrap
    mkdir.exe -p bootstrap/js
    make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)
    

    the second line (MKDIR=) is to prevent the dos mkdir command being used (which doesn't understand the -p flag).

    Then a global search/replace on all the executable references:

    -       mkdir -p bootstrap/js
    +       $(MKDIR) bootstrap/js
            cat js/bootstrap-transition.js js..
    -       ./node_modules/.bin/uglifyjs -nc...
    +       $(UGLIFYJS) -nc bootstrap/js/boot..
    etc.
    

    Now make bootstrap finishes without any problems.

提交回复
热议问题