-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 980 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 980 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
IVPM_DIR:=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
ifeq (,$(PACKAGES_DIR))
PACKAGES_DIR := $(IVPM_DIR)/packages
endif
export PACKAGES_DIR
$(PACKAGES_DIR)/python :
mkdir -p $(PACKAGES_DIR)
python3 -m venv $(PACKAGES_DIR)/python
$(PACKAGES_DIR)/python/bin/python3 -m pip install --upgrade pip
$(PACKAGES_DIR)/python/bin/python3 -m pip install -r $(IVPM_DIR)/requirements.txt
PYTHONPATH=$(IVPM_DIR)/src $(PACKAGES_DIR)/python/bin/python3 -m ivpm update
pdf : $(PACKAGES_DIR)/python
$(PACKAGES_DIR)/python/bin/sphinx-build -M latexpdf \
$(IVPM_DIR)/docs/source \
build
html : $(PACKAGES_DIR)/python
$(PACKAGES_DIR)/python/bin/sphinx-build -M html \
$(IVPM_DIR)/docs/source build
if test ! -f build/html/ivpm.json; then cd $(IVPM_DIR)/build/html; ln -s $(IVPM_DIR)/src/ivpm/share/ivpm.json; fi
if test ! -f build/html/ivpm.schema.json; then cd $(IVPM_DIR)/build/html; ln -s $(IVPM_DIR)/src/ivpm/share/ivpm.json ivpm.schema.json; fi
clean :
rm -rf build