Skip to content

Commit

Permalink
Makefile: add a distclean target
Browse files Browse the repository at this point in the history
This patch prevents the `clean` target from removing node_modules and
adds a `distclean` target instead.

Fixes #162.
  • Loading branch information
Stephen Mathieson committed Mar 26, 2015
1 parent 0a8e4b7 commit 2de6469
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -16,7 +16,7 @@ all: dist/debug.js
install: node_modules

clean:
@rm -rf node_modules dist
@rm -rf dist

dist:
@mkdir -p $@
Expand All @@ -26,8 +26,11 @@ dist/debug.js: node_modules browser.js debug.js dist
--standalone debug \
. > $@

distclean: clean
@rm -rf node_modules

node_modules: package.json
@NODE_ENV= $(NPM) install
@touch node_modules

.PHONY: all install clean
.PHONY: all install clean distclean

0 comments on commit 2de6469

Please sign in to comment.