Skip to content

Instantly share code, notes, and snippets.

@stlehmann
Created September 4, 2017 17:48
Show Gist options
  • Save stlehmann/808a5708c5af2b68e650e35bed37cb01 to your computer and use it in GitHub Desktop.
Save stlehmann/808a5708c5af2b68e650e35bed37cb01 to your computer and use it in GitHub Desktop.
Makefile for Python requirement files with pip-tools
.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