-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathMakefile
50 lines (38 loc) · 1.2 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
# This is a root level Makefile that is primarily used by the CI system to
# trigger builds using Docker images (for anything involving non-standard
# tools like OpenModelica). The goal is that anybody should be able to use
# this Makefile to build the book on any machine that has Docker installed
# on it.
#
# N.B. - Any requires credentials are assumed to be provided by environment
# variables and should *not* be provided here.
.PHONY: specs results dirhtml ebooks api publish_server publish_web serve
all: specs results json ebooks pdfs
env:
dvc cache dir .dvc/cache
-mkdir .dvc/cache
rm -f text/dvc.lock
uname -m > text/build-arch
-rm -rf "$(HOME)/.openmodelica/libraries/ModelicaByExample 0.6.0"
mkdir -p $(HOME)/.openmodelica/libraries
ln -s $(PWD)/ModelicaByExample "$(HOME)/.openmodelica/libraries/ModelicaByExample 0.6.0"
specs:
(cd text; make specs)
results: env specs
(cd text; make results)
dirhtml:
(cd text; make dirhtml)
json: results
(cd text; make json json_kr)
ebooks:
(cd text; make ebooks)
pdfs:
(cd text; make pdf pdf-a4)
site:
(cd nextgen; make all)
deploy_site:
(cd nextgen; yarn deploy)
clean:
git clean -fdx text
git clean -fdx api
git clean -fdx ModelicaByExample