Skip to content

Commit 377d04d

Browse files
committed
Add update recipe to Makefile
Recipe should uninstall all packages in the virtualenv and install the latest versions of all of the package dependencies, and run any necessary post-package installation update scripts (like for versioneer).
1 parent 2bfb12a commit 377d04d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,28 @@ SHELL=/bin/bash
22

33
# Build recipes
44
.PHONY : build
5-
build : tests docs buildpackage ;
5+
build : tests docs buildpackage
6+
$(MAKE) clean
67

78
.PHONY : buildpackage
89
buildpackage : setup.py
910
python setup.py sdist
1011

1112
.PHONY : docs
1213
docs : docs/Makefile
13-
cd docs/
14-
make html
14+
cd docs/ && $(MAKE) html
1515

1616

1717
# Local project directory and environment management recipes
1818
.PHONY : init
1919
init : requirements.txt
2020
pip install -r requirements.txt
2121

22+
.PHONY : update
23+
update : clean-venv init versioneer.py
24+
rm versioneer.py
25+
versioneer install
26+
2227

2328
# Local testing recipes
2429
.PHONY : tests

0 commit comments

Comments
 (0)