-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
66 lines (49 loc) · 2.08 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-builtin-variables
# Monarch release version
ARCHIVE ?= https://archive.monarchinitiative.org/beta
WGET = /usr/bin/wget --timestamping --no-verbose
WGET_GV = $(WGET) --accept ".gv" --recursive --no-parent --no-host-directories --level=1 --cut-dirs=3
QC_FILES = docs/.vuepress/public/gv/ \
docs/.vuepress/public/gv/biolink/ \
docs/.vuepress/public/md/metadata.md \
docs/.vuepress/public/md/scigraph-categories.md \
docs/rules/monarch-rules.md \
docs/solr/solr-diff.md
.PHONY: all clean
all: $(QC_FILES)
clean:
rm --force --recursive --verbose --preserve-root --one-file-system \
docs/.vuepress/public/gv/biolink/ \
docs/.vuepress/public/gv/ \
docs/.vuepress/public/md/metadata.md \
docs/.vuepress/public/md/scigraph-categories.md \
docs/.vuepress/public/md/dipper_diff.md \
docs/rules/monarch-rules.md \
docs/solr/solr-diff.md
docs/.vuepress/public/gv/:
mkdir -p $@
docs/.vuepress/public/gv/biolink/: docs/.vuepress/public/gv/
mkdir -p $@
cd $@ && $(WGET) https://github.com/biolink/biolink-model/archive/master.zip
cd $@ && unzip -j master.zip "biolink-model-master/graphviz/*gv"
docs/.vuepress/public/gv/ns-change/: docs/.vuepress/public/gv/
mkdir -p $@
cd $@ && $(WGET_GV) $(ARCHIVE)/visual_reduction/changes/
docs/.vuepress/public/gv/ns-reduced/: docs/.vuepress/public/gv/
mkdir -p $@
cd $@ && $(WGET_GV) $(ARCHIVE)/visual_reduction/reduced/
docs/.vuepress/public/gv/ns-release/: docs/.vuepress/public/gv/
mkdir -p $@
cd $@ && $(WGET_GV) $(ARCHIVE)/visual_reduction/release/
docs/.vuepress/public/md/metadata.md:
cd docs/.vuepress/public/md/ && $(WGET) $(ARCHIVE)/qc/metadata.md
docs/.vuepress/public/md/scigraph-categories.md:
cd docs/.vuepress/public/md/ && $(WGET) $(ARCHIVE)/qc/scigraph-categories.md
docs/.vuepress/public/md/dipper_diff.md:
cd docs/.vuepress/public/md/ && $(WGET) $(ARCHIVE)/visual_reduction/dipper_diff.md
docs/rules/monarch-rules.md:
cd docs/rules/ && $(WGET) $(ARCHIVE)/qc/monarch-rules.md
docs/solr/solr-diff.md:
cd docs/solr/ && $(WGET) $(ARCHIVE)/qc/solr-diff.md