]> git.proxmox.com Git - corosync-pve.git/blame - Makefile
Makefile: remove cruft
[corosync-pve.git] / Makefile
CommitLineData
82342947 1CSVERSION=2.4.4
459f4daa 2CSRELEASE=pve1
a56af624 3DEBRELEASE=3
930e051d 4CSDIR=corosync-${CSVERSION}
82342947 5CSSRC=corosync_${CSVERSION}.orig.tar.gz
930e051d
DM
6
7ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
459f4daa 8GITVERSION:=$(shell git rev-parse HEAD)
930e051d 9
87af17c7
FG
10MAIN_DEB=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb
11
12OTHER_DEBS=\
571ea76e 13libcorosync4-pve_${CSVERSION}-${CSRELEASE}_all.deb \
a56af624
FG
14corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
15corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
16corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
17corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
18corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \
19corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \
20libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
21libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
22libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
23libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
24libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
25libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
26libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
27libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
28libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
29libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
30libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
31libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
32libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
33libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
34libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
87af17c7
FG
35libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
36
37DBG_DEBS=\
38corosync-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
39corosync-notifyd-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
40corosync-qdevice-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
41corosync-qnetd-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
42libcfg6-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
43libcmap4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
44libcorosync-common4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
45libcpg4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
46libquorum5-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
47libsam4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
48libtotem-pg5-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
49libvotequorum8-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
50
51DEBS=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS}
153f62cc 52
fa002c64
FG
53DSC=corosync-pve_${CSVERSION}-${CSRELEASE}.dsc
54
930e051d
DM
55all: ${DEBS}
56 echo ${DEBS}
57
fa002c64
FG
58${CSDIR}: ${CSSRC} patches changelog.Debian
59 rm -rf $@ $@.tmp
60 mkdir $@.tmp
61 tar -C $@.tmp --strip-components=1 -xf ${CSSRC}
62 mv $@.tmp/debian/changelog $@.tmp/debian/changelog.org
63 cat changelog.Debian $@.tmp/debian/changelog.org > $@.tmp/debian/changelog
64 cd $@.tmp; ln -s ../patches patches
65 cd $@.tmp; quilt push -a
66 cd $@.tmp; rm -rf .pc ./patches
67 mv $@.tmp $@
68
2507e204 69.PHONY: deb
a56af624 70deb: ${DEBS}
87af17c7
FG
71${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB}
72${MAIN_DEB}: ${CSDIR}
a56af624 73 cd ${CSDIR}; dpkg-buildpackage -b -us -uc
930e051d 74
fa002c64
FG
75.PHONY: dsc
76dsc: ${DSC}
77${DSC}: ${CSDIR}
78 cd ${CSDIR}; dpkg-buildpackage -S -us -uc -d -nc
79
013101f0
DM
80.PHONY: download
81download:
df03257c 82 rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR}
82342947 83 git clone https://salsa.debian.org/ha-team/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR}
d05fb358
DM
84 tar czf ${CSSRC}.tmp ${CSDIR}
85 mv ${CSSRC}.tmp ${CSSRC}
013101f0 86
930e051d
DM
87.PHONY: upload
88upload: ${DEBS}
bd751c12 89 tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
930e051d 90
01f3ad04
DM
91distclean: clean
92
930e051d
DM
93.PHONY: clean
94clean:
dc3e3124 95 rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} *.debian.tar.xz
6e49b83c 96 find . -name '*~' -exec rm {} ';'
930e051d
DM
97
98.PHONY: dinstall
99dinstall: ${DEBS}
100 dpkg -i ${DEBS}