]> git.proxmox.com Git - dlm.git/blame - Makefile
split package
[dlm.git] / Makefile
CommitLineData
b786c511
DM
1RELEASE=4.0
2
3# sources from: https://git.fedorahosted.org/git/dlm.git
4
5DLMVER=4.0.2
6PKGREL=1
7DLMDIR=dlm-${DLMVER}
8DLMSRC=${DLMDIR}.tar.gz
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
11GITVERSION:=$(shell cat .git/refs/heads/master)
12
13DEB=dlm_${DLMVER}-${PKGREL}_${ARCH}.deb
14
15all: deb
16
17.PHONY: dinstall
18dinstall: deb
19 dpkg -i ${DEB}
20
21.PHONY: deb
22deb ${DEB}: ${DLMSRC}
23 rm -rf ${DLMDIR}
24 tar xf ${DLMSRC}
25 cp -a debian ${DLMDIR}
26 cd ${DLMDIR}; dpkg-buildpackage -b -uc -us
27
28
29download:
30 rm -f ${DLMSRC}
31 wget https://git.fedorahosted.org/cgit/dlm.git/snapshot/${DLMSRC}
32
33distclean: clean
34
35.PHONY: clean
36clean:
37 rm -rf *~ *_${ARCH}.deb *.changes *.dsc ${DLMDIR}
38