1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
VERSION := 0.0.1
SOURCES := $(shell find $(CURDIR) -name '*.py')
.PHONY: all
all: dist
.PHONY: gen
gen: requirements.txt
.PHONY: clean
clean:
rm -rf dist
.PHONY: dist
dist: dist/ofxstatement-lfs-$(VERSION).tar.gz
.PHONY: install
install: dist/ofxstatement-lfs-$(VERSION).tar.gz
pip3 install $<
.PHONY: docker
docker: dist
docker build -t local/ofxstatement-lfs:$(VERSION) .
dist/ofxstatement-lfs-$(VERSION).tar.gz: $(SOURCES) requirements.txt
python3 setup.py sdist
#
# Naive attempt to freeze the *whole* dependency graph instead of the
# top ones only.
#
requirements.txt: requirements.in
pip-compile --output-file $@ $<
|