Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2014-04-18 10:03:40 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2014-04-18 10:03:40 -0400
commitc1c53493852b8789ceed2813082ab8d465e7ed1d (patch)
tree4b85b5eb0fa470836d219849dffabbb0732d5ba4 /Makefile.am
parent7d27e83f2928832e1a6c4075b02b3da975d11a63 (diff)
downloadliza-c1c53493852b8789ceed2813082ab8d465e7ed1d.tar.gz
liza-c1c53493852b8789ceed2813082ab8d465e7ed1d.tar.bz2
liza-c1c53493852b8789ceed2813082ab8d465e7ed1d.zip
Build now generates index.js modules
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 0be73b6..c79f4ba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,17 +18,22 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
##
+namespaces=$(shell find src -type d)
+nsindex=$(addsuffix /index.js, $(namespaces))
+
SUBDIRS = doc
-.PHONY: todo
+.PHONY: FORCE todo
-all-am: todo
+all-am: modindex
-# placeholder
-todo:
- @echo "You are too early! Liza is not ready; check back later."
+modindex: $(nsindex)
+%/index.js: FORCE
+ ./tools/gen-index "$*" > "$@"
test: check
check:
@PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
mocha --recursive $(TESTARGS)
+
+FORCE: