Browse files

Added `make install

  • Loading branch information...
1 parent 70e94e4 commit 6770e8541de5982b9d0542237a6fe92436b0f338 @tj tj committed Jul 7, 2010
Showing with 13 additions and 1 deletion.
  1. +13 −1 Makefile
View
14 Makefile
@@ -1,11 +1,23 @@
+PREFIX = /usr/local
+LIB_PREFIX = ~/.node_libraries
+
DOCS = docs/index.md \
docs/executable.md \
docs/migrate.md
MANPAGES =$(DOCS:.md=.1)
HTMLDOCS =$(DOCS:.md=.html)
+install:
+ @mkdir -p $(PREFIX)/bin
+ cp -f bin/express $(PREFIX)/bin/express
+ cp -fr lib/express $(LIB_PREFIX)/express
+
+uninstall:
+ rm -f $(PREFIX)/bin/express
+ rm -fr $(LIB_PREFIX)/express
+
test:
@CONNECT_ENV=test ./support/expresso/bin/expresso \
-I lib \
@@ -34,4 +46,4 @@ docs/api.html: lib/express/*.js
docclean:
rm -f docs/*.{1,html}
-.PHONY: test docs docclean
+.PHONY: install uninstall install-docs install-suppport test docs docclean

0 comments on commit 6770e85

Please sign in to comment.