aboutsummaryrefslogtreecommitdiff
blob: 525057ef40bcb38e905a62797f347cd66417a867 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
export PACKAGE_MANAGER = pkgcore

PORTDIR ?= $(shell pinspect query get_repo_path gentoo)
timestamp = $(PORTDIR)/metadata/timestamp.commit
# pass via make!
outdir = /dev/null

# upgrades for stable impls
upgr_base = $(outdir)/34-to-35.txt $(outdir)/35-to-36.txt $(outdir)/36-to-37.txt
# related stabilizations
upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
# all upgrade stuff
upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/pypy3-to-35.txt
upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg)

all = $(upgr_all) $(outdir)/cands.txt $(outdir)/missing-meta.txt

all: $(all)

$(outdir)/cands.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-cands > $@.new
	mv $@.new $@

$(outdir)/depcands.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-depcands > $@.new
	mv $@.new $@

$(outdir)/depcands-all.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-depcands --all > $@.new
	mv $@.new $@

$(outdir)/depcheck.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-depcheck > $@.new
	mv $@.new $@

$(outdir)/34-to-35.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl python3_4 python3_5 > $@.new
	mv $@.new $@

$(outdir)/34-to-35-stablereq.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -s python3_4 python3_5 > $@.new
	mv $@.new $@

$(outdir)/35-to-36.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl python3_5 python3_6 > $@.new
	mv $@.new $@

$(outdir)/35-to-36-stablereq.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -s python3_5 python3_6 > $@.new
	mv $@.new $@

$(outdir)/36-to-37.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl python3_6 python3_7 > $@.new
	mv $@.new $@

$(outdir)/36-to-37-stablereq.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -s python3_6 python3_7 > $@.new
	mv $@.new $@

$(outdir)/pypy3-to-35.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl pypy3 python3_5 > $@.new
	mv $@.new $@

$(outdir)/missing-meta.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-find-missing-meta > $@.new
	mv $@.new $@

%.dot: %.txt
	gpy-depgraph -m python@gentoo.org $< > $@.new
	mv $@.new $@

%.svg: %.dot
	dot -Tsvg $< > $@.new
	mv $@.new $@

.PHONY: all