-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (19 loc) · 754 Bytes
/
Makefile
File metadata and controls
26 lines (19 loc) · 754 Bytes
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
bikeshed = env/bin/bikeshed
build_vocab_spec = vocab_spec_builder/build.exs
build_vocab_serializations = vocab_spec_builder/serializations.exs
objects = index.html
vocab = vocab/rtc.ttl
local_vocab_src = ../rtc-ex/priv/vocabs/rtc.ttl
all : index.html serializations
index.html : index.bs vocab_spec.bs
${bikeshed} spec $<
vocab_spec.bs : $(vocab) $(build_vocab_spec) $(vocab)
elixir $(build_vocab_spec) $< $@
serializations: $(vocab)
elixir $(build_vocab_serializations) $< vocab/rtc.nt vocab/rtc.rdf
# This can be used when you have the vocab at another place locally.
# You'll need to adapt local_vocab_src to your setup.
update_vocab :
@test -f $(local_vocab_src) && cp -v $(local_vocab_src) $(vocab)
watch : all
${bikeshed} watch index.bs