Skip to content

Commit

Permalink
avoid double compile on 'make clean && make debug' dance
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Dec 17, 2014
1 parent 5622670 commit 2d413cd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ all: build
npm install node-pre-gyp

./node_modules: ./node_modules/node-pre-gyp
npm install --build-from-source --clang=1
npm install `node -e "console.log(Object.keys(require('./package.json').dependencies).join(' '))"` \
`node -e "console.log(Object.keys(require('./package.json').devDependencies).join(' '))"` --clang=1

build: ./node_modules
./node_modules/.bin/node-pre-gyp build --loglevel=silent --clang=1

debug:
./node_modules/.bin/node-pre-gyp rebuild --debug --clang=1
debug: ./node_modules
./node_modules/.bin/node-pre-gyp build --debug --clang=1

verbose:
./node_modules/.bin/node-pre-gyp rebuild --loglevel=verbose --clang=1
verbose: ./node_modules
./node_modules/.bin/node-pre-gyp build --loglevel=verbose --clang=1

clean:
@rm -rf ./build
Expand Down

0 comments on commit 2d413cd

Please sign in to comment.