mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
d3602bb459
Change-Id: I39f933b9e0320dc62736da07ce097ec1badec9aa
18 lines
514 B
Makefile
18 lines
514 B
Makefile
COFFEE = $(shell find . -name '*.coffee' -a ! -regex '.*node_modules.*' | sed 's/\.coffee/\.js/')
|
|
|
|
all :: $(COFFEE)
|
|
|
|
test :: parserTests.txt all
|
|
node ./parserTests.js --cache parserTests.txt
|
|
|
|
TESTS_URL = https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob_plain;hb=HEAD;f=tests/parser/parserTests.txt
|
|
parserTests.txt ::
|
|
-if [ ! -e parserTests.txt ] ; then curl -O "$(TESTS_URL)" || wget -O parserTests.txt "$(TESTS_URL)" ; fi
|
|
|
|
.PHONY: test all
|
|
|
|
.SUFFIXES: .coffee .js
|
|
|
|
.coffee.js:
|
|
coffee -c -b $<
|