Created
September 4, 2017 17:48
-
-
Save stlehmann/808a5708c5af2b68e650e35bed37cb01 to your computer and use it in GitHub Desktop.
Makefile for Python requirement files with pip-tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: all check clean | |
objects = $(wildcard *.in) | |
outputs = $(objects:.in=.txt) | |
all: $(outputs) | |
%.txt: %.in | |
pip-compile -v -U --output-file $@ $< | |
develop.txt: base.txt | |
check: | |
@which pip-compile > /dev/null | |
clean: | |
-rm *.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment