-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
50 lines (42 loc) · 1.15 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
help:
@echo ""
@echo "Build a IDS package or install IDS for development"
@echo ""
@echo "Build Packages"
@echo " 'make Build' will build both a wheel and sdist"
@echo "Install"
@echo " 'make install-dev' will install a conda development environment"
@echo "Build documentation"
@echo " 'make auto-docs' will continuosly rebuild the docs"
@echo " as they are updated"
@echo " 'make docs' will build the documentation once"
@echo "Other tasks"
@echo " 'make clean' will clean up the work area"
@echo ""
.PHONY: help clean \
build publish \
docs \
install-dev all
install-dev:
mamba env create -f environment.yml
conda activate viper-dev
pip install --no-deps -e .
clean:
rm -rf dist
build:
make clean && \
flit build && \
pyinstaller -n viper -F --distpath ./dist/bin viper/cli.py && \
cp -rf bin dist/ && \
chmod 775 dist/**
publish:
flit publish && \
mkdocs gh-deploy --force \
-m "Release docs v{version}"
docs:
mkdocs serve
install-conda-base:
wget "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh"
exec Mambaforge-Linux-x86_64.sh
all: build
mkdocs build --theme material