Permalink
Browse files

build submodules in make process

  • Loading branch information...
1 parent 9d380b1 commit 0e151fcf9a316e2bc1f276eb33281807aa51e298 @isaacs isaacs committed Feb 18, 2011
Showing with 10 additions and 8 deletions.
  1. +10 −8 Makefile
View
@@ -1,24 +1,26 @@
docs = $(shell find doc -name '*.md' \
|sed 's|.md|.1|g' \
- |sed 's|doc/|man1/|g' \
- )
+ |sed 's|doc/|man1/|g' )
+
doc_subfolders = $(shell find doc -type d \
- |sed 's|doc/|man1/|g' \
- )
+ |sed 's|doc/|man1/|g' )
+
+submodules:
+ git submodule update --init
-install:
+install: submodules
node cli.js install npm
-dev:
+dev: submodules
node cli.js install
link: uninstall
node cli.js link
clean: uninstall
-uninstall:
+uninstall: submodules
node cli.js cache clean
node cli.js rm npm -r
@@ -36,7 +38,7 @@ man1/%.1: doc/%.md
man1/%/: doc/%/
@if ! test -d $@ ; then mkdir -p $@ ; fi
-test:
+test: submodules
./test/run.sh
version: link

0 comments on commit 0e151fc

Please sign in to comment.