Skip to content

Commit

Permalink
Fix Makefile to force re-compilation on request
Browse files Browse the repository at this point in the history
Everytime when we invoke `make install`, we force all code to be
recompiled and refreshed.
  • Loading branch information
gakhov committed May 7, 2019
1 parent 12b1519 commit f291f34
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install clean test
.PHONY: install build clean test

SHELL = /bin/bash
PYTHON = $(shell which python3)
Expand All @@ -11,11 +11,13 @@ bin/python3:
bin/pip3 install -r requirements.txt

build: bin/python3
rm -Rf build/
find lib/ -type d -name "pdsa" -exec rm -Rf {} +
bin/python3 setup.py build_py
bin/python3 setup.py build_ext --inplace
bin/python3 setup.py build_ext --inplace --force

install: build
bin/python3 setup.py install
bin/python3 setup.py install --force

clean:
# virtualenv
Expand Down

0 comments on commit f291f34

Please sign in to comment.