Permalink
Browse files

Added Makefile for easily testing the installed module

  • Loading branch information...
1 parent d459d36 commit e4be8d84eb98a6b42fe021e2f50b766f20fa47b6 @larzconwell committed Jun 26, 2012
Showing with 23 additions and 0 deletions.
  1. +22 −0 Makefile
  2. +1 −0 bin/auto_npm.js
View
@@ -0,0 +1,22 @@
+.PHONY: install clean uninstall reinstall
+
+PREFIX=/usr/local
+DESTDIR=
+
+install:
+ @mkdir -p $(DESTDIR)$(PREFIX)/bin && \
+ mkdir -p $(DESTDIR)$(PREFIX)/lib/node_modules/auto_npm && \
+ cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/auto_npm/ && \
+ ln -snf ../lib/node_modules/auto_npm/bin/auto_npm.js $(DESTDIR)$(PREFIX)/bin/auto_npm && \
+ chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/auto_npm/bin/auto_npm.js && \
+ echo 'Auto NPM installed.'
+
+clean:
+ @true
+
+uninstall:
+ @rm -f $(DESTDIR)$(PREFIX)/bin/auto_npm && \
+ rm -fr $(DESTDIR)$(PREFIX)/lib/node_modules/auto_npm/ && \
+ echo 'Auto NPM uninstalled.'
+
+reinstall: uninstall install
View
@@ -0,0 +1 @@
+#!/usr/bin/env node

0 comments on commit e4be8d8

Please sign in to comment.