Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index fe2c8e5..d1a2b1c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,8 @@ path_test = $(top_builddir)/test
namespaces=$(shell find src -type d)
nsindex=$(addsuffix /index.js, $(namespaces))
+tsout = tsconfig.tsbuildinfo
+
SUBDIRS = doc
EXTRA_DIST = $(path_src) package.json index.js $(path_src)/version.js \
tools autogen.sh README.md $(path_test) \
@@ -35,12 +37,17 @@ all-am: modindex
dist-hook: check
+# used to force typescript compilation (it handles its own incremental
+# compilation and dependency discovery)
+$(tsout): FORCE
+ node_modules/.bin/tsc
+
modindex: $(nsindex)
-%/index.js: FORCE
+%/index.js: FORCE $(tsout)
./tools/gen-index "$*" > "$@"
test: check
-check:
+check: $(tsout)
PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
mocha @NODE_DESTRUCTURE@ \
--require $(path_test)/pre.js \