-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
55 lines (38 loc) · 3.2 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
all: platform sdk
clean:
rm -rf repo exportrepo .commit-*
PROXY=
VERSION=1
ARCH=x86_64
repo/config:
ostree init --repo=repo --mode=bare-user
exportrepo/config:
ostree init --repo=exportrepo --mode=archive-z2
repo/refs/heads/base/org.flatpak.Runtime/$(ARCH)/$(VERSION): repo/config flatpak-runtime.json treecompose-post.sh group passwd
sudo rpm-ostree compose tree --force-nocache $(PROXY) --repo=repo flatpak-runtime.json
sudo chown -R `whoami` repo
repo/refs/heads/base/org.flatpak.Sdk/$(ARCH)/$(VERSION): repo/config flatpak-sdk.json flatpak-runtime.json treecompose-post.sh group passwd
sudo rpm-ostree compose tree --force-nocache $(PROXY) --repo=repo flatpak-sdk.json
sudo chown -R `whoami` repo
repo/refs/heads/runtime/org.flatpak.Runtime/$(ARCH)/$(VERSION): repo/refs/heads/base/org.flatpak.Runtime/$(ARCH)/$(VERSION) metadata.runtime
./commit-subtree.sh base/org.flatpak.Runtime/$(ARCH)/$(VERSION) runtime/org.flatpak.Runtime/$(ARCH)/$(VERSION) metadata.runtime /usr files
repo/refs/heads/runtime/org.flatpak.Runtime.Var/$(ARCH)/$(VERSION): repo/refs/heads/base/org.flatpak.Runtime/$(ARCH)/$(VERSION) metadata.runtime
./commit-subtree.sh base/org.flatpak.Runtime/$(ARCH)/$(VERSION) runtime/org.flatpak.Runtime.Var/$(ARCH)/$(VERSION) metadata.runtime /var files /usr/share/rpm files/lib/rpm
repo/refs/heads/runtime/org.flatpak.Sdk/$(ARCH)/$(VERSION): repo/refs/heads/base/org.flatpak.Sdk/$(ARCH)/$(VERSION) metadata.sdk
./commit-subtree.sh base/org.flatpak.Sdk/$(ARCH)/$(VERSION) runtime/org.flatpak.Sdk/$(ARCH)/$(VERSION) metadata.sdk /usr files
repo/refs/heads/runtime/org.flatpak.Sdk.Var/$(ARCH)/$(VERSION): repo/refs/heads/base/org.flatpak.Sdk/$(ARCH)/$(VERSION) metadata.sdk
./commit-subtree.sh base/org.flatpak.Sdk/$(ARCH)/$(VERSION) runtime/org.flatpak.Sdk.Var/$(ARCH)/$(VERSION) metadata.sdk /var files /usr/share/rpm files/lib/rpm
exportrepo/refs/heads/runtime/org.flatpak.Runtime/$(ARCH)/$(VERSION): repo/refs/heads/runtime/org.flatpak.Runtime/$(ARCH)/$(VERSION) exportrepo/config
ostree pull-local --repo=exportrepo repo runtime/org.flatpak.Runtime/$(ARCH)/$(VERSION)
flatpak build-update-repo exportrepo
exportrepo/refs/heads/runtime/org.flatpak.Runtime.Var/$(ARCH)/$(VERSION): repo/refs/heads/runtime/org.flatpak.Runtime.Var/$(ARCH)/$(VERSION) exportrepo/config
ostree pull-local --repo=exportrepo repo runtime/org.flatpak.Runtime.Var/$(ARCH)/$(VERSION)
flatpak build-update-repo exportrepo
exportrepo/refs/heads/runtime/org.flatpak.Sdk/$(ARCH)/$(VERSION): repo/refs/heads/runtime/org.flatpak.Sdk/$(ARCH)/$(VERSION) exportrepo/config
ostree pull-local --repo=exportrepo repo runtime/org.flatpak.Sdk/$(ARCH)/$(VERSION)
flatpak build-update-repo exportrepo
exportrepo/refs/heads/runtime/org.flatpak.Sdk.Var/$(ARCH)/$(VERSION): repo/refs/heads/runtime/org.flatpak.Sdk.Var/$(ARCH)/$(VERSION) exportrepo/config
ostree pull-local --repo=exportrepo repo runtime/org.flatpak.Sdk.Var/$(ARCH)/$(VERSION)
flatpak build-update-repo exportrepo
platform: exportrepo/refs/heads/runtime/org.flatpak.Runtime/$(ARCH)/$(VERSION) exportrepo/refs/heads/runtime/org.flatpak.Runtime.Var/$(ARCH)/$(VERSION)
sdk: exportrepo/refs/heads/runtime/org.flatpak.Sdk/$(ARCH)/$(VERSION) exportrepo/refs/heads/runtime/org.flatpak.Sdk.Var/$(ARCH)/$(VERSION)