From c1c53493852b8789ceed2813082ab8d465e7ed1d Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 18 Apr 2014 10:03:40 -0400 Subject: Build now generates index.js modules --- Makefile.am | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Makefile.am') 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: -- cgit v1.2.1