diff --git a/.gitignore b/.gitignore
index a61d188..14f1111 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,5 +11,8 @@ config.*
Makefile
package.json
+# generated by gen-index
+src/**/index.js
+
# npm
node_modules
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 .
##
+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:
diff --git a/index.js b/index.js
index 385f950..7a473b9 100644
--- a/index.js
+++ b/index.js
@@ -1,5 +1,5 @@
/**
- * Provides ease of access to liza entry points
+ * Provides ease of access to liza modules via namespace object
*
* Copyright (C) 2014 LoVullo Associates, Inc.
*
@@ -19,9 +19,5 @@
* along with this program. If not, see .
*/
-// as soon as we have something useful to export, this will contain classes
-// that represent common, viable entry points for the framework (e.g.
-// facades).
-module.exports = {
- version: require( __dirname + '/src/version' )
-};
+// namespace objects are generated by the build
+module.exports = require( __dirname + '/src' );