]> git.proxmox.com Git - dlm.git/blob - Makefile
fix package dependency
[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
32 download:
33 rm -f ${DLMSRC}
34 wget https://git.fedorahosted.org/cgit/dlm.git/snapshot/${DLMSRC}
35
36 distclean: clean
37
38 .PHONY: clean
39 clean:
40 rm -rf *~ *_${ARCH}.deb *.changes *.dsc ${DLMDIR}
41 find . -name '*~' -exec rm {} ';'
42
43
44