forked from OBOFoundry/OBOFoundry.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (22 loc) · 892 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
ONTS := $(wildcard ontology/*md)
PRINCIPLES := $(wildcard principles/*md)
all: _config.yml registry/ontologies.yml
test: validate all
t:
echo $(ONTS)
#_config.yml: _config_header.yml $(ONTS)
# ./util/extract-metadata.py concat -i $< $(ONTS) -o $@.tmp && mv $@.tmp $@
_config.yml: _config_header.yml registry/ontologies.yml principles/all.yml
cat $^ > $@.tmp && mv $@.tmp $@
registry/ontologies.yml: $(ONTS)
./util/extract-metadata.py concat -o $@.tmp $^ && mv $@.tmp $@
principles/all.yml: $(PRINCIPLES)
./util/extract-metadata.py concat-principles -o $@.tmp $^ && mv $@.tmp $@
# TODO: add @context
registry/ontologies.jsonld: registry/ontologies.yml
./util/yaml2json.py $< > $@.tmp && mv $@.tmp $@
# TODO
registry/ontologies.ttl: registry/ontologies.jsonld
riot registry/context.jsonld $< > $@.tmp && mv $@.tmp $@
validate: $(ONTS)
./util/extract-metadata.py validate $^