File: Makefile

package info (click to toggle)
ofxstatement-plugins 20210310
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,964 kB
  • sloc: python: 7,219; xml: 1,027; makefile: 167; sh: 92
file content (33 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (4)
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 $@ $<