-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
59 lines (48 loc) · 1.53 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
include translator_dataflow.Makefile
include validation.Makefile
include documentation.Makefile
include linkml.Makefile
MAKEFLAGS += --warn-undefined-variables
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := help
.DELETE_ON_ERROR:
.SUFFIXES:
.SECONDARY:
RUN = poetry run
DOCDIR = docs
.PHONY: all clean
# note: "help" MUST be the first target in the file,
# when the user types "make" they should get help info
help:
@echo ""
@echo "make install -- install dependencies"
@echo "make test -- runs tests including spelling checks and linting checks"
@echo "make lint -- perform schema linting"
@echo "make testdoc -- builds docs and runs local test server"
@echo "make help -- show this help"
@echo ""
# install any dependencies required for building
install:
git init
poetry install
.PHONY: install
all: site
site: gen-project gendoc
test_pr:
$(RUN) linkml-validate infores_catalog.yaml -s src/information_resource_registry/schema/information_resource_registry.yaml
$(RUN) pytest
$(RUN) codespell
$(RUN) yamllint -c .yamllint-config src/information_resource_registry/schema/*.yaml
$(RUN) yamllint -c .yamllint-config infores_catalog.yaml
test: check_urls
$(RUN) linkml-validate infores_catalog.yaml -s src/information_resource_registry/schema/information_resource_registry.yaml
$(RUN) pytest
$(RUN) codespell
$(RUN) yamllint -c .yamllint-config src/information_resource_registry/schema/*.yaml
$(RUN) yamllint -c .yamllint-config infores_catalog.yaml
clean:
rm -rf $(DEST)
rm -rf tmp
rm -fr docs/*
rm -fr $(PYMODEL)/*