-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (18 loc) · 826 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
watch:
docker-compose run --rm bikeshed watch /extensions/$(spec)/index.bs
define build-target
docker-compose run --rm bikeshed spec $1
endef
build:
@for f in $(shell find . -name "*.bs"); do \
echo "Building $${f}"; \
$(call build-target,$${f}); \
done
new:
mkdir -p ./extensions/$(spec)
docker-compose run --rm bikeshed template > ./extensions/$(spec)/index.bs
build-vocabulary:
npx graphy read -c ttl / concat / tree / write -c nt --inputs extensions/*/vocab.ttl > extensions/extensions.nt
npx graphy read -c ttl / concat / tree / write -c ttl --inputs extensions/*/vocab.ttl > extensions/extensions.ttl
npx graphy read -c ttl / concat / tree / scribe -c xml --inputs extensions/*/vocab.ttl > extensions/extensions.rdf
cat extensions/*/vocab.ttl | npx @frogcat/ttl2jsonld > extensions/extensions.jsonld