Skip to content

Commit 7d93964

Browse files
committed
Add install rule to Makefile.
1 parent 115caa6 commit 7d93964

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ d3.js d3%.js: Makefile
246246
cat $(filter %.js,$^) > $@
247247
@chmod a-w $@
248248

249+
install:
250+
mkdir -p node_modules
251+
npm install
252+
249253
package.json: d3.js
250254
node src/package.js > $@
251255

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ developing on Mac OS X, an easy way to install Node and NPM is using
4545

4646
Next, from the root directory of this repository, install D3's dependencies:
4747

48-
npm install
48+
make install
4949

50-
You can see the list of dependencies in package.json. Npm will install the
51-
packages in your $NODE_PATH, or in the node_modules directory, if unset.
50+
You can see the list of dependencies in package.json. NPM will install the
51+
packages in the node_modules directory.

0 commit comments

Comments
 (0)