progtest/Makefile: Build tame-progtest.js as default target

master v2.9.12
Mike Gerwitz 2018-02-23 10:40:00 -05:00
parent 76795d1c89
commit d1aa5f5704
2 changed files with 12 additions and 3 deletions

View File

@ -33,9 +33,11 @@ export SAXON_CP
.DELETE_ON_ERROR:
.PHONY: check test texis applies
.PHONY: check test texis applies FORCE
.DEFAULT_GOAL := applies
.DEFAULT_GOAL := all
all: applies progtest
test: check
check: | applies
@ -49,5 +51,8 @@ applies: $(apply_dest)
-xsl:"$(HOXSL)/src/transform/apply-gen.xsl" \
"$<" > "$@"
progtest: FORCE
$(MAKE) -C progtest
clean-local:
$(RM) $(apply_dest)

View File

@ -22,6 +22,10 @@
namespaces=$(shell find src/ -type d)
nsindex=$(addsuffix /index.js, $(namespaces))
.DEFAULT_GOAL: all
all: tame-progtest.js
test: check
check:
PATH="$(PATH):$(CURDIR)/node_modules/mocha/bin" \
@ -32,7 +36,7 @@ modindex: $(nsindex)
$(CURDIR)/build-aux/gen-index "$*" > "$@"
browserify: tame-progtest.js
tame-progtest.js: FORCE
tame-progtest.js: check modindex
$(CURDIR)/node_modules/.bin/browserify \
--debug \
-r $(CURDIR)/src/index.js:progtest \