-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 884 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 884 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
27
28
29
30
31
32
33
34
35
.PHONY: build serve clean update deploy update-deploy stash
plantuml.jar:
wget -O plantuml.jar http://sourceforge.net/projects/plantuml/files/plantuml.jar/download
%.png: %.uml plantuml.jar
java -jar plantuml.jar $<
clean:
rm -rf env site/specs mkdocsrc
env:
python -m venv env && . env/bin/activate; pip install mkdocs mkdocs-material mdx-spanner mkdocs-mermaid2-plugin mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin
mkdocsrc:
mkdir $@ &&\
cd $@ &&\
git clone https://github.com/annotation/stam-tools tools &&\
ln -s ../extensions &&\
ln -s ../examples &&\
ln -s ../README.md &&\
ln -s ../model.png &&\
ln -s ../coremodel.png &&\
ln -s ../coremodel_schema.png &&\
ln -s ../logo.png &&\
cd -
specs: env mkdocsrc
. env/bin/activate; mkdocs build --site-dir site/specs
serve: env mkdocsrc
. env/bin/activate; mkdocs serve
update:
git pull