-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
34 lines (24 loc) · 882 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# You could also set to "wget -o -"
GET="curl"
MOCHA=./node_modules/.bin/mocha
ISTANBUL=./node_modules/.bin/nyc
all: README.md
test: test/TurtleTests/manifest.ttl test/rdf-mt-tests/manifest.ttl
$(MOCHA)
coverage: test/TurtleTests/manifest.ttl
$(ISTANBUL) --reporter=html $(MOCHA)
test/TurtleTests/manifest.ttl: | test/TurtleTests
test/TurtleTests:
$(GET) 'https://www.w3.org/2013/TurtleTests/TESTS.tar.gz' | tar -zx -C test -f -
test/rdf-mt-tests/manifest.ttl: | test/rdf-mt-tests
test/rdf-mt-tests:
mkdir $@
$(GET) 'https://www.w3.org/2013/rdf-mt-tests/TESTS.tar.gz' | tar -zx -C test/rdf-mt-tests -f -
# Edit with:
# $ ijsnotebook README.ipynb
# `cat -s` collapses multiple newlines into a single newline
README.md: README.ipynb
jupyter-nbconvert $< --to markdown --stdout | sed 's/^var /const /' | cat -s > $@
clean:
rm -rf README.md coverage
.PHONY: test clean