-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (40 loc) · 1.29 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
all: packages upload
packages: firmware own-kernel qemu-srv pve-mgr
upload: gh-pages
apt-repo/rm-added-debs.sh
apt-repo/update-debs.sh
cd apt-repo ; git add -u && git add conf db dists etc logos pool && git commit && git push
git push `git remote` gh-pages
firmware: gh-pages
$(MAKE) -C edk2
cp edk2/result/*.deb apt-repo/incoming
firmware-clean:
$(MAKE) -C edk2 clean
own-kernel: gh-pages
$(MAKE) -C kernel
cp kernel/result/*.deb apt-repo/incoming
own-kernel-clean:
$(MAKE) -C kernel clean
qemu-srv: gh-pages
$(MAKE) -C qemu-server
cp qemu-server/result/*.deb apt-repo/incoming
qemu-srv-clean:
$(MAKE) -C qemu-server clean
pve-mgr: gh-pages
$(MAKE) -C pve-manager
cp pve-manager/result/*.deb apt-repo/incoming
pve-mgr-clean:
$(MAKE) -C pve-manager clean
.build-deps:
sudo apt-get install -y reprepro git
touch $@
gh-pages: apt-repo/.git .build-deps
rm -rf apt-repo/incoming
mkdir -p apt-repo/incoming
cd apt-repo ; git pull
apt-repo/.git:
git branch | grep gh-pages || git branch gh-pages origin/gh-pages
git clone . --branch gh-pages --single-branch apt-repo
clean: firmware-clean own-kernel-clean qemu-srv-clean pve-mgr-clean
rm -rf apt-repo
.PHONY: gh-pages firmware firmware-clean upload packages clean own-kernel own-kernel-clean qemu-srv qemu-srv-clean all pve-mgr pve-mgr-clean