]> git.proxmox.com Git - dlm.git/blob - Makefile
do not enable dlm by default
[dlm.git] / Makefile
1 RELEASE=4.0
2
3 # sources from: https://git.fedorahosted.org/git/dlm.git
4
5 DLMVER=4.0.2
6 PKGREL=1
7 DLMDIR=dlm-${DLMVER}
8 DLMSRC=${DLMDIR}.tar.gz
9
10 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11 GITVERSION:=$(shell cat .git/refs/heads/master)
12
13 DEBS= \
14 libdlm3_${DLMVER}-${PKGREL}_${ARCH}.deb \
15 libdlm-dev_${DLMVER}-${PKGREL}_${ARCH}.deb
16
17 all: ${DEBS}
18
19 .PHONY: dinstall
20 dinstall: deb
21 dpkg -i ${DEBS}
22
23 .PHONY: deb
24 deb ${DEBS}: ${DLMSRC}
25 rm -rf ${DLMDIR}
26 tar xf ${DLMSRC}
27 cp -a debian ${DLMDIR}
28 cd ${DLMDIR}; dpkg-buildpackage -b -uc -us
29 lintian ${DEBS}
30
31 download:
32 rm -f ${DLMSRC}
33 wget https://git.fedorahosted.org/cgit/dlm.git/snapshot/${DLMSRC}
34
35 .PHONY: upload
36 upload: ${DEBS}
37 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
38 mkdir -p /pve/${RELEASE}/extra
39 rm -f /pve/${RELEASE}/extra/libdlm3_*.deb
40 rm -f /pve/${RELEASE}/extra/libdlm-dev_*.deb
41 rm -f /pve/${RELEASE}/extra/Packages*
42 cp ${DEBS} /pve/${RELEASE}/extra
43 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
44 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
45
46 distclean: clean
47
48 .PHONY: clean
49 clean:
50 rm -rf *~ *_${ARCH}.deb *.changes *.dsc ${DLMDIR}
51 find . -name '*~' -exec rm {} ';'
52
53
54