Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added `make install-docs`

  • Loading branch information...
commit 73050d38c5dc2784082d1040b7a6eb5dbf7a07cb 1 parent c50e941
@tj tj authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 Makefile
View
12 Makefile
@@ -9,12 +9,12 @@ DOCS = docs/index.md \
MANPAGES =$(DOCS:.md=.1)
HTMLDOCS =$(DOCS:.md=.html)
-install:
+install: install-docs
@mkdir -p $(PREFIX)/bin
cp -f bin/express $(PREFIX)/bin/express
cp -fr lib/express $(LIB_PREFIX)/express
-uninstall:
+uninstall: uninstall-docs
rm -f $(PREFIX)/bin/express
rm -fr $(LIB_PREFIX)/express
@@ -26,6 +26,12 @@ uninstall-support:
cd support/connect && $(MAKE) uninstall
cd support/jade && $(MAKE) uninstall
+install-docs:
+ cp -f docs/executable.1 $(PREFIX)/share/man/man1/express.1
+
+uninstall-docs:
+ rm -f $(PREFIX)/share/man/man1/express.1
+
test:
@CONNECT_ENV=test ./support/expresso/bin/expresso \
-I lib \
@@ -59,4 +65,4 @@ docs/api.html: lib/express/*.js
docclean:
rm -f docs/*.{1,html}
-.PHONY: install uninstall install-docs install-support uninstall-support test test-cov docs docclean
+.PHONY: install uninstall install-docs install-support uninstall-support install-docs uninstall-docs test test-cov docs docclean
Please sign in to comment.
Something went wrong with that request. Please try again.