diff --git a/Makefile b/Makefile index 58fce92762..8c724cbe16 100644 --- a/Makefile +++ b/Makefile @@ -14,18 +14,18 @@ $(COMMON_CONSTRAINTS_TXT): wget -O "$(@)" https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt || touch "$(@)" # Define PIP_COMPILE_OPTS=-v to get more information during make upgrade. -PIP_COMPILE = pip-compile --rebuild --upgrade $(PIP_COMPILE_OPTS) +PIP_COMPILE = cd requirements/; pip-compile --rebuild --upgrade $(PIP_COMPILE_OPTS) upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade upgrade: $(COMMON_CONSTRAINTS_TXT) ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in pip install -qr requirements/pip-tools.txt # Make sure to compile files after any other files they include! - $(PIP_COMPILE) --allow-unsafe -o requirements/pip.txt requirements/pip.in - $(PIP_COMPILE) -o requirements/pip-tools.txt requirements/pip-tools.in + $(PIP_COMPILE) --allow-unsafe -o pip.txt pip.in + $(PIP_COMPILE) -o pip-tools.txt pip-tools.in pip install -qr requirements/pip.txt pip install -qr requirements/pip-tools.txt - $(PIP_COMPILE) -o requirements/base.txt requirements/base.in - $(PIP_COMPILE) -o requirements/dev.txt requirements/dev.in + $(PIP_COMPILE) -o base.txt base.in + $(PIP_COMPILE) -o dev.txt dev.in clean: ## remove built html files make -C en_us clean