Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'progtest/Makefile')
-rw-r--r--progtest/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/progtest/Makefile b/progtest/Makefile
index 8c92c08..e4808ae 100644
--- a/progtest/Makefile
+++ b/progtest/Makefile
@@ -17,9 +17,17 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-.PHONY: check test
+.PHONY: check test modindex FORCE
+
+namespaces=$(shell find src/ -type d)
+nsindex=$(addsuffix /index.js, $(namespaces))
test: check
check:
PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
mocha --harmony_destructuring --recursive test/
+
+modindex: $(nsindex)
+%/index.js: FORCE
+ $(CURDIR)/build-aux/gen-index "$*" > "$@"
+