-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
61 lines (43 loc) · 1.37 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
59
60
# Created by: Vinay Ravindra
# Date: 2020.02.11
PROJECT := orbitpy
.DEFAULT_GOAL := all
AUX = propcov
TEST = tests
DOC = docs
.PHONY: aux aux_clean aux_bare docs docs_clean
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " all to perform clean-up and installation"
@echo " install to set up the python package (pip install -e .)"
@echo " runtest to perform unit testing"
@echo " clean to remove *.pyc files and __pycache__ directories"
@echo " bare to uninstall the package and remove *egg*"
all: bare install docs
aux: aux_bare # install the propcov package
-X=`pwd`; \
echo '<<<' $$AUX '>>>'; cd $$X; cd $(AUX); make all;
aux_clean:
-X=`pwd`; \
echo '<<<' $$AUX '>>>'; cd $$X; cd $(AUX); make clean;
aux_bare:
-X=`pwd`; \
echo '<<<' $$AUX '>>>'; cd $$X; cd $(AUX); make bare;
docs: docs_clean #Build the documentation
-X=`pwd`; \
echo '<<<' $$DOC '>>>'; cd $$X; cd $(DOC); make html;
docs_clean:
-X=`pwd`; \
echo '<<<' $$DOC '>>>'; cd $$X; cd $(DOC); make clean;
install: aux
pip install -e .
runtest:
-X=`pwd`; \
cd $$X; cd $(TEST); python -m unittest discover
clean: aux_clean docs_clean
@echo "Cleaning up..."
@find . -name "*.pyc" -delete
@find . -type d -name __pycache__ -print0 | xargs -0 rm -rf
bare: clean aux_bare docs_clean
pip uninstall -y $(PROJECT)
rm -rf $(PROJECT).egg-info