Commit 215af33e by Dane Springmeyer

ditch two step install, just target nw right off with npm install

parent 7dc9a4a5
...@@ -3,10 +3,10 @@ NODE_WEBKIT_VERSION=0.8.4 ...@@ -3,10 +3,10 @@ NODE_WEBKIT_VERSION=0.8.4
all: app.nw all: app.nw
node_modules/sqlite3: node_modules/sqlite3:
npm install https://github.com/mapbox/node-sqlite3/tarball/master npm install https://github.com/mapbox/node-sqlite3/tarball/master --build-from-source --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)
node_modules/sqlite3/lib/node_sqlite3.node: node_modules/sqlite3 rebuild:
cd node_modules/sqlite3 && ./node_modules/.bin/node-pre-gyp build --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION) cd node_modules/sqlite3 && ./node_modules/.bin/node-pre-gyp rebuild --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)
node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip: node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip:
wget https://s3.amazonaws.com/node-webkit/v$(NODE_WEBKIT_VERSION)/node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip wget https://s3.amazonaws.com/node-webkit/v$(NODE_WEBKIT_VERSION)/node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip
...@@ -14,7 +14,7 @@ node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip: ...@@ -14,7 +14,7 @@ node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip:
./node-webkit.app: node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip ./node-webkit.app: node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip
unzip -o node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip unzip -o node-webkit-v$(NODE_WEBKIT_VERSION)-osx-ia32.zip
app.nw: ./node-webkit.app Makefile package.json index.html node_modules/sqlite3/lib/node_sqlite3.node app.nw: ./node-webkit.app Makefile package.json index.html node_modules/sqlite3
zip app.nw index.html package.json node_modules zip app.nw index.html package.json node_modules
test: ./node-webkit.app app.nw test: ./node-webkit.app app.nw
...@@ -30,8 +30,7 @@ package: ./node-webkit.app Makefile package.json index.html node_modules/sqlite3 ...@@ -30,8 +30,7 @@ package: ./node-webkit.app Makefile package.json index.html node_modules/sqlite3
./node-sqlite-test.app/Contents/MacOS/node-webkit ./node-sqlite-test.app/Contents/MacOS/node-webkit
clean: clean:
rm -rf ./node_modules/sqlite3/build rm -rf ./node_modules/sqlite3
rm -f ./node_modules/sqlite3/lib/node_sqlite3.node
rm -f ./app.nw rm -f ./app.nw
rm -rf node-sqlite-test.app rm -rf node-sqlite-test.app
rm -f credits.html rm -f credits.html
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment