Skip to content

Commit

Permalink
simplify makefile, depend on node-pre-gyp tricks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Apr 14, 2014
1 parent 33208a4 commit cc754da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

all: mapnik.node

mapnik.node:
PATH=$$PATH:`npm explore npm -g -- pwd`/bin/node-gyp-bin/ node-gyp build
./node_modules/mapnik-vector-tile:
npm install mapnik-vector-tile sphericalmercator mocha

./node_modules/.bin/node-pre-gyp: ./node_modules/mapnik-vector-tile
npm install node-pre-gyp

mapnik.node: ./node_modules/.bin/node-pre-gyp
./node_modules/.bin/node-pre-gyp build

clean:
@rm -rf ./build
Expand Down
2 changes: 0 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
'variables': {
'std%':'ansi',
'runtime_link%':'shared',
"module_name":"<!(node -e \"console.log(require('./package.json').binary.module_name)\")",
"module_path":"<!(node -e \"console.log(require('./package.json').binary.module_path)\")",
'NODEMAPNIK_DIR%':'.'
},
'conditions': [
Expand Down
4 changes: 0 additions & 4 deletions configure

This file was deleted.

0 comments on commit cc754da

Please sign in to comment.