-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
55 lines (46 loc) · 1.44 KB
/
Makefile
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
MODULES = bootstrap atomic hp
ARCHES = aarch64 armv7hl i686 ppc64 ppc64le s390x x86_64
INPUT ?= https://raw.githubusercontent.com/fedora-modularity/hp/master
TOPLEVEL = toplevel-binary-packages.txt
.PHONY: all clean test update-input
all: $(MODULES)
$(MODULES): repo/devel
./generate_module_lists.sh \
--version=devel \
--module=$@ \
$(foreach arch,$(ARCHES),--arch $(arch))
./make_modulemd.pl -v ./data/Fedora/devel/$@
repo/devel:
./download_repo.sh \
$(foreach arch,$(ARCHES),--arch $(arch)) \
--release=devel \
--overrides
repo/rawhide:
./download_repo.sh \
$(foreach arch,$(ARCHES),--arch $(arch)) \
--archful-srpm-file=archful-srpms.txt \
--release=rawhide \
--overrides
clean:
rm -f data/Fedora/devel/*/*.yaml
rm -f data/Fedora/devel/*/*/runtime-*.txt
rm -f data/Fedora/devel/*/*/selfhosting-*.txt
test:
$(foreach test,$(sort $(wildcard tests/*)),./$(test);)
update-input:
$(foreach module,$(MODULES),\
$(foreach arch,$(ARCHES),\
curl "$(INPUT)/$(module)/$(arch)/$(TOPLEVEL)" \
> "data/Fedora/devel/$(module)/$(arch)/$(TOPLEVEL)";))
curl "$(INPUT)/bootstrap.csv" \
> "data/Fedora/devel/bootstrap/bootstrap.csv"
curl "$(INPUT)/atomic.csv" \
> "data/Fedora/devel/atomic/atomic.csv"
curl "$(INPUT)/host.csv" \
> "data/Fedora/devel/hp/host.csv"
curl "$(INPUT)/platform.csv" \
> "data/Fedora/devel/hp/platform.csv"
curl "$(INPUT)/shim.csv" \
> "data/Fedora/devel/hp/shim.csv"
sync-bootstrap:
./sync-bootstrap.sh