]>
Commit | Line | Data |
---|---|---|
b786c511 DM |
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 | DEB=dlm_${DLMVER}-${PKGREL}_${ARCH}.deb | |
14 | ||
15 | all: deb | |
16 | ||
17 | .PHONY: dinstall | |
18 | dinstall: deb | |
19 | dpkg -i ${DEB} | |
20 | ||
21 | .PHONY: deb | |
22 | deb ${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 | ||
29 | download: | |
30 | rm -f ${DLMSRC} | |
31 | wget https://git.fedorahosted.org/cgit/dlm.git/snapshot/${DLMSRC} | |
32 | ||
33 | distclean: clean | |
34 | ||
35 | .PHONY: clean | |
36 | clean: | |
37 | rm -rf *~ *_${ARCH}.deb *.changes *.dsc ${DLMDIR} | |
38 |