aboutsummaryrefslogtreecommitdiff
blob: b1d02e73c39d4b28f7e32ac558dfd416fa3fc7e7 (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
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)/39-to-310.txt $(outdir)/38-to-39.txt
# related stabilizations
upgr_streq = $(patsubst %.txt,%-stablereq.txt,$(upgr_base))
# all upgrade stuff
upgr_txt = $(upgr_base) $(upgr_streq) $(outdir)/py2.txt
upgr_dot = $(patsubst %.txt,%.dot,$(upgr_txt))
upgr_svg = $(patsubst %.dot,%.svg,$(upgr_dot))
# add new impls here if not stable yet, to avoid insanely huge generation times
upgr_all = $(upgr_txt) $(upgr_dot) $(upgr_svg) $(outdir)/310-to-311.txt

all = $(upgr_all)

all: $(all)

$(outdir)/310-to-311.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -m python3_10 python3_11 > $@.new
	mv $@.new $@

$(outdir)/310-to-311-stablereq.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -m -s python3_10 python3_11 > $@.new
	mv $@.new $@

$(outdir)/39-to-310.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -m python3_9 python3_10 > $@.new
	mv $@.new $@

$(outdir)/39-to-310-stablereq.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -m -s python3_9 python3_10 > $@.new
	mv $@.new $@

$(outdir)/38-to-39.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -m python3_8 python3_9 > $@.new
	mv $@.new $@

$(outdir)/38-to-39-stablereq.txt: $(timestamp)
	mkdir -p $(outdir)
	gpy-upgrade-impl -m -s python3_8 python3_9 > $@.new
	mv $@.new $@

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

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

.PHONY: all